/// <summary>
 ///
 /// </summary>
 /// <param name="db"></param>
 public LocationCustomRepository(STEInterfacesEntities db)
 {
     try
     {
         this.db = db;
         table   = db.Set <Location_SYD>();
     }
     catch (Exception ex)
     {
         Logger.Instance.GetLogInstance().Error(JsonConvert.SerializeObject(ex));
     }
 }
Пример #2
0
 /// <summary>
 ///
 /// </summary>
 public GenericRepository()
 {
     try
     {
         this.db = new STEInterfacesEntities();
         table   = db.Set <T>();
     }
     catch (Exception ex)
     {
         Logger.Instance.GetLogInstance().Error(JsonConvert.SerializeObject(ex));
     }
 }