コード例 #1
0
        protected void GenSchemaTable(object sender, EventArgs e)
        {
            SchemaDefineCollection schemas = SchemaExtensions.CreateSchemasDefineFromConfiguration();

            using (TransactionScope scope = TransactionScopeFactory.Create())
            {
                schemas.ForEach(schema => SchemaDefineAdapter.Instance.Update(schema));
                scope.Complete();
            }
        }
コード例 #2
0
ファイル: PersistSchemaInfo.cs プロジェクト: wooln/AK47Source
        public void SchemaDefinePersistTest()
        {
            SchemaDefineCollection schemas = SchemaExtensions.CreateSchemasDefineFromConfiguration();

            using (TransactionScope scope = TransactionScopeFactory.Create())
            {
                schemas.ForEach(schema => SchemaDefineAdapter.Instance.Update(schema));

                scope.Complete();
            }
        }
コード例 #3
0
        private void InitAllUsers()
        {
            InSqlClauseBuilder inBuilder = new InSqlClauseBuilder("SchemaType");

            SchemaDefineCollection schemas = SchemaExtensions.CreateSchemasDefineFromConfiguration();

            schemas.ForEach(schema =>
            {
                if (string.Compare(schema.Category, "Users", true) == 0)
                {
                    inBuilder.AppendItem(schema.Name);
                }
            });

            this._AllUsers = SchemaObjectAdapter.Instance.Load(inBuilder);
        }