We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c81d9f8 + 8b46a45 commit 0f14264Copy full SHA for 0f14264
README.md
@@ -44,6 +44,7 @@ public partial class DB : DbContext, IDbContext
44
{
45
return base.Set<T>();
46
}
47
+ public DbSet<Customer> Customers {get;set;}
48
public int Save()
49
50
return base.SaveChanges();
@@ -64,7 +65,7 @@ public class ConsumeService
64
65
var container = UnityConfig.Container;
66
67
// register your 'DataModel'
- container.RegisterType<IDbContext, DataModel>();
68
+ container.RegisterType<IDbContext, DB>();
69
70
var dbManager=container.Resolve<IDBManager>(); //get the db manager
71
0 commit comments