Return to Snippet

Revision: 40298
at January 29, 2011 03:46 by housecor


Initial Code
ddEnrollmentMethod.DataSource = from t in context.EnrollmentMethods
											orderby t.Name
											select new
												{
													Name = SqlFunctions.StringConvert((double)t.EnrollmentMethodID) + ". " + t.Name,
													t.EnrollmentMethodID
												};

Initial URL
http://msdn.microsoft.com/en-us/library/system.data.objects.sqlclient.sqlfunctions.aspx

Initial Description
For some reason, methods in this class can actually be called to manipulate data in EF queries.

Initial Title
Convert int to string in LINQ to Entities Query

Initial Tags

                                

Initial Language
C#