随笔分类 - asp.net mvc
摘要:linq to sql内链接,左右链接(示例)2011-06-16 17:37:29|分类: linq to sql |字号订阅 public static void InnerJoinTest()//内链接 { DemoDataContext context = new DemoDataContext(); context.Log = Console.Out; //方式一 var query = from tb1 in context.RoleRow join tb2 in context.RoleFunctionRow on tb1.RoleId equals tb2.RoleId sel
阅读全文
摘要:HTML扩展类的所有方法都有2个参数:以textbox为例子public static string TextBox( this HtmlHelper htmlHelper, string name, Object value, IDictionary htmlAttributes )public static string TextBox( this HtmlHelper htmlHelper, string name, Object value, Object htmlAttributes )这2个参数代表这个html标签的属性集合。使用方法如下。1.ActionLink带有QuerySt
阅读全文