Exemple #1
0
        public T GetRefreshedEntity <T>(IQueryable <T> entities, RefreshRowInfo info)
            where T : class
        {
            object[] keyValue = info.rowInfo.GetPKValues(this._dataHelper);
            object   dbEntity = this.FindEntity(entities, info.rowInfo, keyValue);

            return((T)dbEntity);
        }
Exemple #2
0
        public static T GetRefreshedEntityDataHelper <T>(IQueryable <T> entities, RefreshRowInfo info)
            where T : class
        {
            object[] keyValue;
            object   dbEntity = QueryHelper.FindEntity(entities, info.rowInfo, out keyValue);

            return((T)dbEntity);
        }
Exemple #3
0
 public Customer RefreshCustomer(RefreshRowInfo refreshInfo)
 {
     return(QueryHelper.GetRefreshedEntityDataHelper <Customer>(this.DB.Customers, refreshInfo));
 }
Exemple #4
0
 public Product RefreshProduct(RefreshRowInfo refreshInfo)
 {
     return(QueryHelper.GetRefreshedEntityDataHelper <Product>(this.DB.Products, refreshInfo));
 }
Exemple #5
0
        public ActionResult RefreshItem(RefreshRowInfo getInfo)
        {
            var res = this.DomainService.ServiceRefreshRow(getInfo);

            return(Json(res));
        }