Ejemplo n.º 1
0
        public static IEnumerable <RowVersionClass> GetNewerThan(PersistenceManager pm, ulong version)
        {
            byte[] versionBytes = BitConverter.GetBytes(version).Reverse().ToArray();

            return(pm.Objects <RowVersionClass>().Where(
                       u => u.rowVersion.GreaterThan(versionBytes) &&
                       u.rowVersion.LowerThan(SqlServerFunctions.MinActiveRowversion())
                       ).ResultTable);
        }
Ejemplo n.º 2
0
 public static int LastInsertId(this SqlServerFunctions s) => 0;
Ejemplo n.º 3
0
 public static decimal Max(this SqlServerFunctions s, decimal expr) => 0m;
Ejemplo n.º 4
0
 public static double Max(this SqlServerFunctions s, double expr) => 0d;
Ejemplo n.º 5
0
 public static float Max(this SqlServerFunctions s, float expr) => 0f;
Ejemplo n.º 6
0
 public static long Max(this SqlServerFunctions s, long expr) => 0;
Ejemplo n.º 7
0
 public static int Max(this SqlServerFunctions s, int expr) => 0;
Ejemplo n.º 8
0
 public static int Count(this SqlServerFunctions s)
 => 0;
Ejemplo n.º 9
0
 public static byte Max(this SqlServerFunctions s, byte expr) => 0;
Ejemplo n.º 10
0
 public static bool HasFlag <TProperty>(this SqlServerFunctions s, TProperty value, TProperty flag)
     where TProperty : Enum
 => false;
Ejemplo n.º 11
0
 public static bool IsIn <TProperty>(this SqlServerFunctions s, TProperty value, IProjectionQuery <TProperty> valuesQuery)
 => false;
Ejemplo n.º 12
0
 public static bool IsIn <TProperty>(this SqlServerFunctions s, TProperty value, IEnumerable <TProperty> collection)
 => false;
Ejemplo n.º 13
0
 public static bool IsLike(this SqlServerFunctions s, string str, string pattern)
 => false;
Ejemplo n.º 14
0
 public static int Count(this SqlServerFunctions s, object expression)
 => 0;
Ejemplo n.º 15
0
 public static bool ValueIsGreaterThanOne(this SqlServerFunctions s, SqlServerFunctionTests.Flat_Entity entity)
 {
     //  don't implement
     return(false);
 }
Ejemplo n.º 16
0
 public static short Max(this SqlServerFunctions s, short expr) => 0;
Ejemplo n.º 17
0
 public static int Random(this SqlServerFunctions s) => 0;