示例#1
0
 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));
     }
 }