DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
MemberMapping.cs
Go to the documentation of this file.
1 using System;
2 using System.Reflection;
3 
4 using Deveel.Data.Types;
5 
6 namespace Deveel.Data.Mapping {
7  public sealed class MemberMapping {
8  internal MemberMapping(TypeMapping typeMapping, MemberInfo member, string columnName, SqlType columnType, bool notNull, bool primaryKey, bool unique, bool uniqueKey) {
9  TypeMapping = typeMapping;
10  Member = member;
11  ColumnName = columnName;
12  ColumnType = columnType;
13  NotNull = notNull;
14  PrimaryKey = primaryKey;
15  Unique = unique;
16  UniqueKey = uniqueKey;
17  }
18 
19  public MemberInfo Member { get; private set; }
20 
21  public TypeMapping TypeMapping { get; private set; }
22 
23  public string MemberName {
24  get { return Member.Name; }
25  }
26 
27  public string ColumnName { get; private set; }
28 
29  public SqlType ColumnType { get; private set; }
30 
31  public bool NotNull { get; private set; }
32 
33  public bool PrimaryKey { get; private set; }
34 
35  public bool Unique { get; private set; }
36 
37  public bool UniqueKey { get; private set; }
38  }
39 }
MemberMapping(TypeMapping typeMapping, MemberInfo member, string columnName, SqlType columnType, bool notNull, bool primaryKey, bool unique, bool uniqueKey)
Definition: MemberMapping.cs:8
Defines the properties of a specific SQL Type and handles the values compatible.
Definition: SqlType.cs:33