Beispiel #1
0
        /// <summary>
        /// 创建表索引
        /// </summary>
        public void CreateTableIndex()
        {
            AbsDBExtend db   = DBExtend;
            TModel      obj1 = new TModel();

            ModelCheck.CheckIndexExists(typeof(TModel), db);
        }
        /// <summary>
        /// 创建TABLE[基本方法]
        /// </summary>
        /// <returns></returns>
        public virtual string CreateTable()
        {
            var db  = DBExtend;
            var str = ModelCheck.CreateTable(typeof(T), db as AbsDBExtend);

            return(str);
        }
Beispiel #3
0
        /// <summary>
        /// 创建TABLE[基本方法]
        /// </summary>
        /// <returns></returns>
        public virtual string CreateTable()
        {
            AbsDBExtend db   = DBExtend;
            TModel      obj1 = new TModel();
            var         str  = ModelCheck.CreateTable(typeof(TModel), db);

            return(str);
        }
Beispiel #4
0
 public string CreateTable(AbsDBExtend db)
 {
     return(ModelCheck.CreateTable(GetType(), db));
 }
Beispiel #5
0
        ///// <summary>
        ///// 获取Mongo查询
        ///// </summary>
        ///// <typeparam name="TModel"></typeparam>
        ///// <returns></returns>
        //public abstract IMongoQueryable<TModel> GetMongoQueryable<TModel>();
        public virtual void CreateTableIndex <TModel>()
        {
            var type = typeof(TModel);

            ModelCheck.CheckIndexExists(type, this);
        }