public static T Run <T>(this GetByIdModel sqlStrModel, MSSqlDBContext db) { DbContextSqlQueryCommand dbContextSqlQueryCommand = new DbContextSqlQueryCommand(); dbContextSqlQueryCommand.QueryType = "text"; dbContextSqlQueryCommand.Query = sqlStrModel.IdStr; return(SelectDb <T>(dbContextSqlQueryCommand, db).FirstOrDefault()); //string sql = string.Empty; }
public static GetByIdModel GetById <T>(this SelectInfo <T> selectInfo, string id) { GetByIdModel GetByIdModel = new GetByIdModel(); return(GetByIdModel); }