public TableDescription(Type type) { type.NullCheck("type"); TableDescriptionAttribute attr = AttributeHelper.GetCustomAttribute <TableDescriptionAttribute>(type); if (attr != null) { InitDescription(attr); } else { this.TableName = type.Name; } }
public void InitDescription(TableDescriptionAttribute tableAttribute) { this.TableName = tableAttribute.TableName; this.BeginAddress = tableAttribute.BeginAddress; }