/// <summary>
 /// 保存存储媒介的配置
 /// </summary>
 public void Save()
 {
     if (this.StorageMedia == StorageMediaType.MySQL ||
         this.StorageMedia == StorageMediaType.SQLServer)
     {
         var config = (RelationDatabaseConfigure)this;
         MongoAccessor.Insert <RelationDatabaseConfigure>(config);
     }
 }
Exemplo n.º 2
0
 public virtual ActionResult <ResultKey, TEntity> Create(TEntity entity)
 {
     MongoAccessor.Insert <TEntity>(entity);
     return(new ActionResult <ResultKey, TEntity>());
 }