收徒弟,另外接项目
net吧
全部回复
仅看楼主
level 1
飘玲小祭 楼主
接项目主要.net,包括webservice,service简单winform,另外带人入门,培训也可以。需要的发信息。。。
2015年11月28日 12点11分 1
level 9
???
2015年11月29日 14点11分 2
level 1
我需要可加930449577求带
2015年12月02日 01点12分 3
level 1
我要2782999643可加
2015年12月04日 02点12分 4
level 1
1442235813求带
2015年12月04日 02点12分 5
level 1
2015年12月04日 05点12分 6
level 6
求指导 qq私信
2015年12月04日 16点12分 8
level 3
师傅,1224800251何时带我西天取经
2015年12月04日 17点12分 9
level 2
收我为徒吧[]
2015年12月05日 03点12分 10
level 2
楼主 求带
2015年12月06日 03点12分 11
level 4
楼主 收了我吧。754327037
2015年12月07日 06点12分 12
level 3
求带272031107
2015年12月08日 18点12分 13
level 2
如题 我自己手动创建了一个LINQ to SQL实体类 然后映射该类的属性到表中的列
但是每次都说 列名***无效 ,
//第二步创建一个类,并将其映射到数据库表 (这种类通常也被称为实体类) //只需要添加tableAttribute属性实现映射,Name对应映射的表的名称 [Table(Name = "product")] public class product { private int id; private string name; private int c_id; private decimal price; private int number; //将类的属性和表的列进行映射 //column表示当前属性的映射! 当前属性!是属性不是字段! [Column(Storage = "id", AutoSync = AutoSync.OnInsert, IsPrimaryKey = true,IsDbGenerated=true)]//id public int Id { get { return id; } set { id = value; } } [Column(Storage = "name", DbType = "nvarchar(20)")]//名称 public string Name { get { return name; } set { name = value; } } [Column(Storage = "price", DbType = "money")]//价格 public decimal Price { get { return price; } set { price = value; } } [Column(Storage = "number", DbType = "int")] public int Number { get { return number; } set { number = value; } } [Column(Storage = "c_id", DbType = "int")] public int C_id { get { return c_id; } set { c_id = value; } } }
对应数据库的设计如下
每次就提示我
“System.Data.SqlClient.SqlException”类型的未经处理的异常在 System.Data.dll 中发生
其他信息: 列名 'Name' 无效。
列名 'Price' 无效。
2015年12月09日 02点12分 14
level 2
419967268 楼主求带
2015年12月09日 02点12分 15
1 2 尾页