Please see code.
return from org in context.Organizations
select new
{
PlaceId = org.OrganizationId,
org.Name
};
How to concat some string with Name in above query, like
return from org in context.Organizations
select new
{
开发者_StackOverflow PlaceId = org.OrganizationId,
org.Name + "Some string will go here" // Error: How to do this
};
Thanks.
Maybe?
select new
{
PlaceId = org.OrganizationId,
Name = org.Name + "Some string will go here" // Error: How to do this
};
精彩评论