コード例 #1
0
ファイル: DbType.cs プロジェクト: bbqchickenrobot/lex.db
 public virtual bool Equals(DbType type)
 {
   return type.Id == Id;
 }
コード例 #2
0
ファイル: DbDictType.cs プロジェクト: xperiandri/lex.db
 public DbDictType(DbType key, DbType value)
   : base((sbyte)KnownDbType.Dict, typeof(Dictionary<,>).MakeGenericType(key.Type, value.Type))
 {
   Key = key;
   Value = value;
 }
コード例 #3
0
ファイル: DbListType.cs プロジェクト: xperiandri/lex.db
 public DbListType(DbType element)
   : base((sbyte)KnownDbType.List, element.Type.MakeArrayType())
 {
   Element = element;
 }
コード例 #4
0
ファイル: DbDictType.cs プロジェクト: xperiandri/lex.db
 public override bool Equals(DbType type)
 {
   return type.Id == Id && ((DbDictType)type).Key.Equals(Key) && ((DbDictType)type).Value.Equals(Value);
 }
コード例 #5
0
ファイル: DbListType.cs プロジェクト: xperiandri/lex.db
 public override bool Equals(DbType type)
 {
   return type.Id == Id && ((DbListType)type).Element.Equals(Element);
 }