static void CreateColumn(IModelMemberPersistent modelMemberPersistent, XPObjectSpace objectSpace, XpandCustomMemberInfo customMemberInfo) { if (CanCreateColumn(modelMemberPersistent, objectSpace)) { objectSpace.CreateColumn(customMemberInfo, ((IModelOptionMemberPersistent)modelMemberPersistent.Application.Options).ThrowUnableToCreateDbObjectException); modelMemberPersistent.DataStoreColumnCreated = true; modelMemberPersistent.DataStoreForeignKeyCreated = customMemberInfo.HasAttribute(typeof(AssociationAttribute)); } }
static void CreateColumn(IModelMemberPersistent modelMemberPersistent, XPObjectSpace objectSpace, XpandCustomMemberInfo customMemberInfo) { if (CanCreateColumn(modelMemberPersistent, objectSpace)) { objectSpace.CreateColumn(customMemberInfo); modelMemberPersistent.DataStoreColumnCreated = true; modelMemberPersistent.DataStoreForeignKeyCreated = customMemberInfo.HasAttribute(typeof(AssociationAttribute)); } }