Пример #1
0
        internal static string And <T>(Expression <Func <T, bool> > parameter)
        {
            var query = QueryCreate.ToCql(parameter);

            return($" AND {query}");
        }
Пример #2
0
        internal static string WhereIn <T>(Expression <Func <T, object> > parameter, object[] values)
        {
            var param = QueryCreate.GetParameterName(parameter);

            return($" WHERE {param} IN ({string.Join(", ", values.Select(p => p.GetPropertyValue()))})");
        }
Пример #3
0
        internal static string Where <T>(Expression <Func <T, bool> > parameters)
        {
            var query = QueryCreate.ToCql(parameters);

            return($" WHERE {query}");
        }
Пример #4
0
        internal static string Select <T>()
        {
            var table = QueryCreate.GetTableName <T>();

            return($"SELECT * FROM {table}");
        }
Пример #5
0
        internal static string Update <T>()
        {
            var table = QueryCreate.GetTableName <T>();

            return($"UPDATE {table}");
        }
Пример #6
0
        internal static string Delete <T>()
        {
            var table = QueryCreate.GetTableName <T>();

            return($"DELETE FROM {table}");
        }