Пример #1
0
        /// <summary>
        /// 生成数据库访问范围
        /// </summary>
        internal static MySqlDataTableScope <PageDataData> CreateScope()
        {
            var db = SystemDb.Default ?? new SystemDb();

            return(MySqlDataTableScope <PageDataData> .CreateScope(db, db.PageDatas));
        }
Пример #2
0
        /// <summary>
        /// 生成数据库访问范围
        /// </summary>
        internal static MySqlDataTableScope <OrganizePositionData> CreateScope()
        {
            var db = Authorities.Default ?? new Authorities();

            return(MySqlDataTableScope <OrganizePositionData> .CreateScope(db, db.OrganizePositions));
        }
Пример #3
0
        /// <summary>
        /// 生成数据库访问范围
        /// </summary>
        internal static MySqlDataTableScope <UserData> CreateScope()
        {
            var db = Authorities.Default ?? new Authorities();

            return(MySqlDataTableScope <UserData> .CreateScope(db, db.Users));
        }
        /// <summary>
        /// 生成数据库访问范围
        /// </summary>
        internal static MySqlDataTableScope <PositionPersonnelData> CreateScope()
        {
            var db = Authorities.Default ?? new Authorities();

            return(MySqlDataTableScope <PositionPersonnelData> .CreateScope(db, db.PositionPersonnels));
        }
        /// <summary>
        /// 生成数据库访问范围
        /// </summary>
        internal static MySqlDataTableScope <DataDictionaryData> CreateScope()
        {
            var db = SystemDb.Default ?? new SystemDb();

            return(MySqlDataTableScope <DataDictionaryData> .CreateScope(db, db.DataDictionaries));
        }
Пример #6
0
        /// <summary>
        /// 生成数据库访问范围
        /// </summary>
        internal static MySqlDataTableScope <UserJobData> CreateScope()
        {
            var db = WorkflowDataBase.Default ?? new WorkflowDataBase();

            return(MySqlDataTableScope <UserJobData> .CreateScope(db, db.UserJobs));
        }