コード例 #1
0
 public FKandNavigationFromModel(T model)
 {
     _db    = new NorthWindRevEntities();
     _dbSet = _db.Set <T>();
     _model = model;
     _assem = typeof(YoutubeDevExpressMVC.Web.Models.Db.Product).Assembly;
 }
コード例 #2
0
 public CRUDController()
 {
     _db        = new NorthWindRevEntities();
     _dbSet     = _db.Set <TEntity>();
     _className = this.GetType().Name;
     _className = _className.Remove(_className.Length - 10);
 }