Esempio n. 1
0
        public void LoadObjectSchemas()
        {
            ObjectSchemaSettings settings = ObjectSchemaSettings.GetConfig();

            SchemaDefineCollection schemas = new SchemaDefineCollection(settings.Schemas);

            schemas.ForEach(s => s.Output(Console.Out));
        }
Esempio n. 2
0
		public void LoadObjectSchemas()
		{
			ObjectSchemaSettings settings = ObjectSchemaSettings.GetConfig();

			SchemaDefineCollection schemas = new SchemaDefineCollection(settings.Schemas);

			schemas.ForEach(s => s.Output(Console.Out));
		}
Esempio n. 3
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();
            }
        }
Esempio n. 4
0
        public void SchemaDefinePersistTest()
        {
            SchemaDefineCollection schemas = SchemaExtensions.CreateSchemasDefineFromConfiguration();

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

                scope.Complete();
            }
        }
Esempio n. 5
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);
        }