コード例 #1
0
 public static TEntity GetEntity <TEntity>(Expression <Func <TEntity, bool> > predicate)
     where TEntity : class, new()
 {
     using (UnitOfWork.UnitOfWork unitOfWork = new UnitOfWork.UnitOfWork(DBContext_External))
         return(unitOfWork.GetEntity <TEntity>(predicate));
 }
コード例 #2
0
 public static TEntity GetEntity <TEntity>(int id)
     where TEntity : class, new()
 {
     using (UnitOfWork.UnitOfWork unitOfWork = new UnitOfWork.UnitOfWork(DBContext_External))
         return(unitOfWork.GetEntity <TEntity>(id));
 }