Esempio n. 1
0
        public TableDescription(Type type)
        {
            type.NullCheck("type");

            TableDescriptionAttribute attr = AttributeHelper.GetCustomAttribute <TableDescriptionAttribute>(type);

            if (attr != null)
            {
                InitDescription(attr);
            }
            else
            {
                this.TableName = type.Name;
            }
        }
Esempio n. 2
0
 public void InitDescription(TableDescriptionAttribute tableAttribute)
 {
     this.TableName    = tableAttribute.TableName;
     this.BeginAddress = tableAttribute.BeginAddress;
 }