Ejemplo n.º 1
0
 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);
        }
Ejemplo n.º 3
0
 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;
     }
 }
Ejemplo n.º 4
0
 public ST_ZT_11(string name, cfg config)
     : base(name, config)
 {
 }
Ejemplo n.º 5
0
 var(cfg, rootCfg, version) = await Setup.LoadCfg(basePath: Setup.SolutionDir.Combine("YtCli").FullPath);
Ejemplo n.º 6
0
Archivo: fuzz.cs Proyecto: zjmit/go2cs
 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;
            }
Ejemplo n.º 8
0
 public IStatAdapter(string name, cfg config)
 {
     this.name   = name;
     this.config = config;
 }
Ejemplo n.º 9
0
 PokeRoutineType.Reset => new EncounterBotReset(cfg, Hub),
Ejemplo n.º 10
0
 PokeRoutineType.RaidBot => new RaidBot(cfg, Hub),
Ejemplo n.º 11
0
 registrationAction?.Invoke(cfg, host);
Ejemplo n.º 12
0
 public ST_EP_05(string name, cfg config)
     : base(name, config)
 {
 }
Ejemplo n.º 13
0
 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;
     }
 }
Ejemplo n.º 14
0
 public ST_CN_04(string name, cfg config)
     : base(name, config)
 {
 }
Ejemplo n.º 15
0
 => new(new RoundParameters(
            cfg,
            Network.Main,
Ejemplo n.º 16
0
 public TypeConverter(cfg.db2hbmconf config )
 {
     this.config = config;
 }
Ejemplo n.º 17
0
 PokeRoutineType.LairBot => new LairBot(cfg, Hub),
Ejemplo n.º 18
0
 PokeRoutineType.EncounterLine => new EncounterBotLine(cfg, Hub),
Ejemplo n.º 19
0
 PokeRoutineType.DenBot => new DenBot(cfg, Hub),
Ejemplo n.º 20
0
 PokeRoutineType.Dogbot => new EncounterBotDog(cfg, Hub),
Ejemplo n.º 21
0
 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();
 }
Ejemplo n.º 23
0
 PokeRoutineType.SoJCamp => new SoJCamp(cfg, Hub),
Ejemplo n.º 24
0
 public ST_YJ_06(string name, cfg config)
     : base(name, config)
 {
 }
Ejemplo n.º 25
0
 PokeRoutineType.CurryBot => new CurryBot(cfg, Hub),
Ejemplo n.º 26
0
 public ST_QY_03(string name, cfg config)
     : base(name, config)
 {
 }
Ejemplo n.º 27
0
 PokeRoutineType.RollingRaid => new RollingRaidBot(cfg, Hub),
Ejemplo n.º 28
0
 .Bind(cfg, o => o.BindNonPublicProperties = true)
 .Validate(s => s.DeletionInterval != default,
Ejemplo n.º 29
0
 PokeRoutineType.EggFetch => new EggBot(cfg, Hub),
Ejemplo n.º 30
0
 public ST_US_02(string name, cfg config)
     : base(name, config)
 {
 }
Ejemplo n.º 31
0
 PokeRoutineType.FossilBot => new FossilBot(cfg, Hub),
Ejemplo n.º 32
0
 public ST_LG_01(string name, cfg config)
     : base(name, config)
 {
 }
Ejemplo n.º 33
0
 private int SatisfyScale(IColumnMetadata cInfo, cfg.db2hbmconfSqltype candidate)
 {
     return 0;
 }