public void InitializeNonparsableProperties(out IEnumerable <IConceptInfo> createdConcepts)
 {
     Dependency_Extends = new DataStructureExtendsInfo {
         Extension = EntityComputedFrom.Target
     };
     createdConcepts = null;
 }
 private static string BasePropertyOnExtension(DataStructureExtendsInfo info)
 {
     return string.Format(
         @"        <many-to-one name=""Base"" column=""ID"" class=""{0}, {1}"" update=""false"" insert=""false"" unique=""true"" {2} />
     ",
         info.Base.GetKeyProperties(),
         NHibernateMappingGenerator.AssemblyTag,
         MappingTagOnExtension.Evaluate(info));
 }
 private static string ExtensionPropertyOnBase(DataStructureExtendsInfo info)
 {
     return string.Format(
         @"        <many-to-one name=""{0}"" column=""ID"" class=""{1}, {2}"" update=""false"" insert=""false"" {3} />
     ",
         DataStructureExtendsCodeGenerator.ExtensionPropertyName(info),
         info.Extension.GetKeyProperties(),
         NHibernateMappingGenerator.AssemblyTag,
         MappingTagOnBase.Evaluate(info));
 }
 private static bool ShouldCreateConstraint(DataStructureExtendsInfo info)
 {
     return info.Extension is EntityInfo && (info.Base is IWritableOrmDataStructure);
 }
 public static string GetConstraintName(DataStructureExtendsInfo info)
 {
     return SqlUtility.Identifier(Sql.Format("DataStructureExtendsDatabaseDefinition_ConstraintName",
         info.Extension.Name,
         info.Base.Name));
 }
 public void InitializeNonparsableProperties(out IEnumerable<IConceptInfo> createdConcepts)
 {
     Dependency_Extends = new DataStructureExtendsInfo { Extension = EntityComputedFrom.Target };
     createdConcepts = null;
 }
 private static bool ShouldCreateConstraint(DataStructureExtendsInfo info)
 {
     return info.Extension is EntityInfo
         && ForeignKeyUtility.GetSchemaTableForForeignKey(info.Base) != null;
 }
 public static string ExtensionPropertyName(DataStructureExtendsInfo info)
 {
     if (info.Base.Module == info.Extension.Module)
         return "Extension_" + info.Extension.Name;
     return "Extension_" + info.Extension.Module.Name + "_" + info.Extension.Name;
 }