Пример #1
0
 protected string SqlEncodeId(PocoBase item)
 {
     if (Object.ReferenceEquals(item, null))
     {
         return(NULL);
     }
     return(string.Format(SqlEncodeFormat, item.Id));
 }
Пример #2
0
 public static bool NotEqual <T>(PocoBase <T> x, PocoBase <T> y) where T : PocoBase <T>
 {
     if (ReferenceEquals(x, y))
     {
         return(false);
     }
     if (x is null != y is null)
     {
         return(true);
     }
     if (x.ObjectType != y.ObjectType)
     {
         return(true);
     }
     return((InequalityFunctions[x.ObjectType] as Func <T, T, bool>)(x as T, y as T));
 }