04 2013 档案

摘要:首先要把 EFCodeFirst类库工程里,添加EntityFramework的引用。/// <summary> /// FileInfo:实体类名要和数据表名的名称一样。 /// </summary> [Serializable] public partial class t_FileInfo { public t_FileInfo() {} #region Model private int _id; private string _fileulr; private DateTime _uploadtime; private int _infotype; priva 阅读全文
posted @ 2013-04-24 10:57 文艺流浪汉 阅读(513) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 绑定实体,把控件装在Panel里 /// </summary> /// <param name="spanel"></param> /// <param name="entity"></param> public void BinToEntity(Panel spanel, object entity) { ArrayList al = new ArrayList(); List<PropertyInfo> PI2list = e... 阅读全文
posted @ 2013-04-22 11:38 文艺流浪汉 阅读(290) 评论(0) 推荐(0) 编辑