stify">} Queryable.AsQueryable (new List ());
} IQueryable GetByUserFilter (string _parametr_name, VT _value) where T: class
{
{itemParameter=Expression.Parameter (typeof (T), «item»); whereExpression=Expression.Lambda >
(. Equal (. Property (, _parametr_name
),. Constant (_value)
), [] {itemParameter}
); _datacontext.GetTable (). Where (whereExpression);
} (Exception ex)
{
_appcontext.SysMsg.ReportMsg (ex.Message, avto.SysMsg.Interfaces.MsgType.Error);
} Queryable.AsQueryable (new List ());
} string DoubleToPointString (Double d)
{s=d.ToString (); s.Replace («,», «.»);
} string DoubleToPointString (string d)
{d.Replace («,», «.»);
} List GetProperyName () Where T: class
{ returnlist=new List ();
{entityType=typeof (T); (PropertyInfo property in entityType.GetProperties ())
{(GetAttributeOf (property) == 0). Add (property.Name);
} returnlist;
} (Exception ex)
{
_appcontext.SysMsg.ReportMsg (ex.Message, avto.SysMsg.Interfaces.MsgType.Error);
} returnlist;
} List GetProperyType () where T: class
{ returnlist=new List ();
{entityType=typeof (T); (PropertyInfo property in entityType.GetProperties ())
{(GetAttributeOf (property) == 0). Add (property.PropertyType);
} returnlist;
} (Exception ex)
{
_appcontext.SysMsg.ReportMsg (ex.Message, avto.SysMsg.Interfaces.MsgType.Error);
} returnlist;
} int GetID (T obj) where T: class
{values ??= null;
{entityType=typeof (T); (PropertyInfo property in entityType.GetProperties ())
{(GetAttributeOf (property) == 1)=property.GetValue (obj, new object [] {});
} (values!=null) (int) values;
} (Exception ex)
{- 1;
} - 1;
}
}
} avto.Data ??p>
{class Repository: BaseRepository
{Repository () {} Repository (IDbDataSource dbDataSource, IAppContext appContext)
{. Assert (null!=dbDataSource);
_db=dbDataSource;
_datacontext=_db.Datacontext;
_appcontext=appContext;
} bool Del (T obj) where T: class
{base.Del (obj);
} IQueryable GetWorksDetails (int _ID)
{GetAll (). Where (it => it.Work_id == _ID);