Beispiel #1
0
        public object FindMax <T>(string propertyName, string WhereSql, DbParameter[] parameters) where T : new()
        {
            StringBuilder builder = DatabaseCommon.SelectMaxSql <T>(propertyName);

            builder.Append(WhereSql);
            return(DbHelper.ExecuteScalar(CommandType.Text, builder.ToString(), parameters));
        }
Beispiel #2
0
        public object FindMax <T>(string propertyName) where T : new()
        {
            StringBuilder builder = DatabaseCommon.SelectMaxSql <T>(propertyName);

            return(DbHelper.ExecuteScalar(CommandType.Text, builder.ToString()));
        }