protected virtual IMongoEntityModel GetEntityModel <TEntity>()
        {
            var model = ModelSource.GetModel(this).Entities.GetOrDefault(typeof(TEntity));

            if (model == null)
            {
                throw new AbpException("Could not find a model for given entity type: " + typeof(TEntity).AssemblyQualifiedName);
            }

            return(model);
        }
Exemple #2
0
 public virtual void InitializeCollections(IMongoDatabase database)
 {
     Database = database;
     ModelSource.GetModel(this);
 }