Skip to content

Commit 0f14264

Browse files
author
Ajeet
committed
2 parents c81d9f8 + 8b46a45 commit 0f14264

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public partial class DB : DbContext, IDbContext
4444
{
4545
return base.Set<T>();
4646
}
47+
public DbSet<Customer> Customers {get;set;}
4748
public int Save()
4849
{
4950
return base.SaveChanges();
@@ -64,7 +65,7 @@ public class ConsumeService
6465
var container = UnityConfig.Container;
6566
6667
// register your 'DataModel'
67-
container.RegisterType<IDbContext, DataModel>();
68+
container.RegisterType<IDbContext, DB>();
6869
6970
var dbManager=container.Resolve<IDBManager>(); //get the db manager
7071

0 commit comments

Comments
 (0)