コード例 #1
0
        public static SqlStrModel SetSqlStr <T>(this SelectInfo <T> selectInfo, string sqlWhereStr)
        {
            SqlStrModel sqlStrModel = new SqlStrModel();

            sqlStrModel.SqlStr = sqlWhereStr;
            return(sqlStrModel);
        }
コード例 #2
0
        public static List <T> Run <T>(this SqlStrModel sqlStrModel, MSSqlDBContext db)
        {
            DbContextSqlQueryCommand dbContextSqlQueryCommand = new DbContextSqlQueryCommand();

            dbContextSqlQueryCommand.QueryType = "text";
            dbContextSqlQueryCommand.Query     = sqlStrModel.SqlStr;
            return(SelectDb <T>(dbContextSqlQueryCommand, db));
        }