예제 #1
0
 /// <summary>
 /// 添加实时数据
 /// </summary>
 /// <param name="model">实体</param>
 /// <returns></returns>
 public bool AddRealTimeData(YY_DATA_AUTO model)
 {
     //判断参数类型,转存数据
     //更新雨量、河道水位、水库水位表 并 转存
     //ResaveToHLJDB.UpdRain_River_RsvrList(model);
     Reflection_Resave.Resave(model);
     return(dt.Insert <YY_DATA_AUTO>("YY_DATA_AUTO", model));
 }
예제 #2
0
        static PublicBD()
        {
            DB = ReadDB().ToUpper();
            if (DB == "MSSQL")
            {
                db = new SqlDBBussiness();
            }
            else if (DB == "ORACLE")
            {
                db = new OracleDBBussiness();
            }
            else
            {
                db = new MySqlDBBussiness();
            }

            Reflection_Resave R_Resave = new Reflection_Resave();
        }