随笔分类 - 答疑解惑
摘要:报错的语句: strSql.Append(" AND cu.CurrentSalesMan in (@CurrentSalesMans)"); db.AddParameter("@CurrentSalesMans", GetCommaPartionUserIDs(CurrentSalesMan)); 错误提示:Conversion failed when converting the nvarchar value '1,2,3,4,5,6,9,12,13,15,26,27,28,29' to data type int.可以运行的语句:
阅读全文
摘要:code only 和 code first的关系 !! code only 就是 code first !!
阅读全文
摘要:把string?改成string...string是引用类型,本来就可为null,可空泛型结构只允许用于值类型...基础...
阅读全文
摘要:关于TextBox的Enable与ReadOnly属性大家都知道TextBox编译到客户端浏览器其实是<Input type="text">控件,而Enabled与Readonly编译到浏览器的代码是disabled和ReadOnly。为什么要说这两个属性呢,因为这两个属性跟我们后台编程时取值有关系。在.Net 1.1和.Net 2.0平台下,如果把TextBox的Enabled设置为True,而我们通过脚本修改控件的值后,在后台是取不到修改后的值的。也就是说后台代码是取不到属性Enabled为True的新值.这样就对我们编程有一定的不便,这样的话,我们要设置一
阅读全文