Vote UpVote

Ad-hoc SQL/POCO Queries in Entity Framework 4.0

Craig Stuntz's Weblog – Since version 4.0, the Entity Framework has had the ability to query un-mapped data and project it onto POCOs using ad-hoc SQL. Here, for example, is how we check the current SQL Server version: internal class SqlVersionInfo { public string Edition { get; set; } public string ProductLevel { get; set; } public string ProductVersion { get; set; } } private static SqlVersionInfo GetSqlServerVersion(ObjectContext context) { const string sql = @"SELECT SERVERPROPERTY('productversion') as ...
Favorite? Off-Topic? Craig Stuntz @ 2011-12-30 19:54


Visits: 329
Votes: 0
Favorites: 0
Off-Topic: 1

Visits by Source

User Actions

Users who voted for this posting

Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)