LINQ Learning Summary

来源:互联网 发布:java程序部署到服务器 编辑:程序博客网 时间:2024/05/14 11:23


c.Template_Tags.Any(x => x.Tag.Translation.Contains(tsc.tag_t_part))

In Linq, the contains is same as the "like %" function in T-SQL


***************************************************************************************************************************************************************************************

LINQ DeleteAllOnSubmit

dc.AgencyOffices.DeleteAllOnSubmit(dc.AgencyOffices.Where(c=>c.idOffice == oid));                                dc.SubmitChanges();

****************************************************************************************************************************************************************************************



原创粉丝点击