标签:个数 开头 nic bin 高级 art users style end
1、以...开头 StartsWith
Repeater1.DataSource=con.Users.Where(r=>r.Nickname.StartsWith("李"));
Repeater1.DataBind();
2、以...结尾 EndsWith
Repeater1.DataSource=con.Users.Where(r=>r.Nickname.EndsWith("同"));
Repeater1.DataBind();
3、模糊差(包含) Contains
Repeater1.DataSource=con.Users.Where(r=>r.Nickname.Contains("蘇"));
Repeater1.DataBind();
4、个数
标签:个数 开头 nic bin 高级 art users style end
原文地址:http://www.cnblogs.com/snow22546/p/6933542.html