コード例 #1
0
        /// <summary>
        /// Sets the current config
        /// </summary>
        internal static void SetCurrent(Func <MicroCRUDConfig, MicroCRUDConfig> updater)
        {
            lock (LockObject)
            {
                var newValue = updater(current);

                current = newValue ?? throw new ArgumentException("Updater returned a null object");
            }
        }
コード例 #2
0
        static MicroCRUDConfig()
        {
            var defaultSchemaFactory = new TableSchemaFactory(new DefaultTableNameFactory(), new DefaultColumnNameFactory());

            current = new MicroCRUDConfig(MicroCRUD.Dialect.SqlServer2012, defaultSchemaFactory, true);
        }