internal static AlterActionBase[] Create(cfg.alter a) { List<AlterActionBase> ret = new List<AlterActionBase>(); if (a.remove != null) { foreach (var remove in a.remove) { ret.Add(CreateRemove(remove.name)); } } if (a.set != null) { foreach (var set in a.set) { ret.Add(CreateSet(set.name,set.value)); } } if (a.metaadd != null ) { foreach (var ma in a.metaadd) { ret.Add(new MetaAddAction(ma.attribute,ma.Value,ma.inheritSpecified?ma.inherit:false)); } } return ret.ToArray(); }
private ISessionFactory BuildSessionFactory() { // var dataBindingIntercepter = new DataBindingInterceptor(); Logger.Debug("Building session factory"); cfg config = GetConfiguration(); var result = MonahrqNHibernateProvider.SessionFactory ?? MonahrqNHibernateProvider.Configuration.BuildSessionFactory(); // .ExposeSessionFactory(factory => dataBindingIntercepter.SessionFactory = factory); Logger.Debug("Done building session factory"); return(result); }
private int SatisfyLen(IColumnMetadata cInfo, cfg.db2hbmconfSqltype candidate) { if (null == candidate.length) return 0; else { int hi, lo; GetHiLo(candidate.length,out hi,out lo); if (cInfo.ColumnSize >= lo && cInfo.ColumnSize <= hi) return 1; else return 0; } }
public ST_ZT_11(string name, cfg config) : base(name, config) { }
var(cfg, rootCfg, version) = await Setup.LoadCfg(basePath: Setup.SolutionDir.Combine("YtCli").FullPath);
var(cfg, err) = DecodeConfig(bytes.NewReader(data));
public ConfiguredForeignKeyColumnInfo(cfg.db2hbmconfTableForeignkeyColumnref cref, cfg.db2hbmconfTableForeignkey fk, ITableMetadata metaData) { PrimaryKeyTableName = fk.foreigntable; PrimaryKeyTableCatalog = fk.foreigncatalog; PrimaryKeyTableSchema = fk.foreignschema; PrimaryKeyColumnName = cref.foreigncolumn; ForeignKeyColumnName = cref.localcolumn; ForeignKeyTableCatalog = metaData.Catalog; ForeignKeyTableSchema = metaData.Schema; ForeignKeyTableSchema = metaData.Name; }
public IStatAdapter(string name, cfg config) { this.name = name; this.config = config; }
PokeRoutineType.Reset => new EncounterBotReset(cfg, Hub),
PokeRoutineType.RaidBot => new RaidBot(cfg, Hub),
registrationAction?.Invoke(cfg, host);
public ST_EP_05(string name, cfg config) : base(name, config) { }
private int SatisfyPrecision(IColumnMetadata cInfo, cfg.db2hbmconfSqltype candidate) { if (null == candidate.precision) return 0; else { int hi, lo; GetHiLo(candidate.length, out hi, out lo); if (cInfo.NumericalPrecision >= lo && cInfo.NumericalPrecision <= hi) return 1; else return 0; } }
public ST_CN_04(string name, cfg config) : base(name, config) { }
=> new(new RoundParameters( cfg, Network.Main,
public TypeConverter(cfg.db2hbmconf config ) { this.config = config; }
PokeRoutineType.LairBot => new LairBot(cfg, Hub),
PokeRoutineType.EncounterLine => new EncounterBotLine(cfg, Hub),
PokeRoutineType.DenBot => new DenBot(cfg, Hub),
PokeRoutineType.Dogbot => new EncounterBotDog(cfg, Hub),
PokeRoutineType.BoolBot => new BoolBot(cfg, Hub),
private IForeignKeyColumnInfo[] GetColumnInfoFromConfig(cfg.db2hbmconfTableForeignkey fk, ITableMetadata metaData) { List<IForeignKeyColumnInfo> fks = new List<IForeignKeyColumnInfo>(); foreach (var ci in fk.columnref) { fks.Add(new ConfiguredForeignKeyColumnInfo(ci, fk, metaData)); } return fks.ToArray(); }
PokeRoutineType.SoJCamp => new SoJCamp(cfg, Hub),
public ST_YJ_06(string name, cfg config) : base(name, config) { }
PokeRoutineType.CurryBot => new CurryBot(cfg, Hub),
public ST_QY_03(string name, cfg config) : base(name, config) { }
PokeRoutineType.RollingRaid => new RollingRaidBot(cfg, Hub),
.Bind(cfg, o => o.BindNonPublicProperties = true) .Validate(s => s.DeletionInterval != default,
PokeRoutineType.EggFetch => new EggBot(cfg, Hub),
public ST_US_02(string name, cfg config) : base(name, config) { }
PokeRoutineType.FossilBot => new FossilBot(cfg, Hub),
public ST_LG_01(string name, cfg config) : base(name, config) { }
private int SatisfyScale(IColumnMetadata cInfo, cfg.db2hbmconfSqltype candidate) { return 0; }