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