示例#1
0
 public Repository(IOnExContext dbContext)
 {
     db = dbContext;
 }
示例#2
0
 protected void DataSource_ContextCreating(object sender, EntityDataSourceContextCreatingEventArgs e)
 {
     var context = new IOnExContext();
     e.Context = ((IObjectContextAdapter)context).ObjectContext;
 }
示例#3
0
 public Repository()
 {
     db = new IOnExContext();
 }