Click here to Skip to main content
15,881,803 members
Articles / Programming Languages / SQL

Extending C# to Support SQL Syntax at Compile Time

Rate me:
Please Sign up or sign in to vote.
4.84/5 (29 votes)
23 Jul 2014CPOL13 min read 146.1K   858   76  
Ever wished you could truly embed SQL functionality in your C# code without using strings or late binding? Imagine being able to write complex Where clauses purely in C#.
using System;
using NUnit.Framework;

namespace TestSuite {
  [TestFixture] 
	public class MainFirebird : Main {
		public MainFirebird() {	
      _DB = Firebird.NewFirebirdConnection();
    }
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Cyprus Cyprus
Chad Z. Hower, a.k.a. Kudzu
"Programming is an art form that fights back"

I am a former Microsoft Regional DPE (MEA) covering 85 countries, former Microsoft Regional Director, and 10 Year Microsoft MVP.

I have lived in Bulgaria, Canada, Cyprus, Switzerland, France, Jordan, Russia, Turkey, The Caribbean, and USA.

Creator of Indy, IntraWeb, COSMOS, X#, CrossTalk, and more.

Comments and Discussions