/ Published in: C#
For some reason, methods in this class can actually be called to manipulate data in EF queries.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
ddEnrollmentMethod.DataSource = from t in context.EnrollmentMethods orderby t.Name select new { Name = SqlFunctions.StringConvert((double)t.EnrollmentMethodID) + ". " + t.Name, t.EnrollmentMethodID };
URL: http://msdn.microsoft.com/en-us/library/system.data.objects.sqlclient.sqlfunctions.aspx