摘要: 继承借口 规定T是什么类型 public partial class BaseDAL<T> : BaseFaceDAL<T> where T : class { public int add(T t) { } } 声明T全局变量 public partial class BaseDAL<T>{ pu 阅读全文
posted @ 2017-05-25 16:27 段十八丶 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 获取连接字符串 ConfigurationManager.ConnectionStrings["connectionStringsName"].ToString(); 阅读全文
posted @ 2017-05-25 11:59 段十八丶 阅读(6046) 评论(1) 推荐(1) 编辑
摘要: 例如: public class A { public int Id{get;set;} pulbic intGetId(){ return this.Id; } } 初始化时会默认调用 一个 public A(){} 的一个构造函数 可以不写、 public class B { public B( 阅读全文
posted @ 2017-05-25 11:50 段十八丶 阅读(423) 评论(0) 推荐(0) 编辑