Exemple #1
0
 internal void RegisterDbContext(MSDbContext dbContext)
 {
     if (!_dbContexts.Exists(dbCtx => dbCtx.Equals(dbContext)))
     {
         _dbContexts.Add(dbContext);
     }
 }
Exemple #2
0
        public static void InitializeQueryableCollections(this MSDbContext context, object entity)
        {
            var dbEntity = entity as Entity;

            if (dbEntity != null)
            {
                ((dynamic)dbEntity).DomainContext = context;
            }
        }