private string GetEntityTypeNodeForStorageModel(DataStructureInfo dataStructureInfo)
       {
           return($@"
 <EntityType Name=""{GetName(dataStructureInfo)}"">
   <Key>
     <PropertyRef Name=""ID"" />
   </Key>
   <Property Name=""ID"" Type=""uniqueidentifier"" Nullable=""false"" {StorageModelCustomannotationIndexForIDTag.Evaluate(dataStructureInfo)}/>{StorageModelEntityTypePropertyTag.Evaluate(dataStructureInfo)}
 </EntityType>");
       }
Beispiel #2
0
       private static string GetEntityTypeNodeForConceptualModel(DataStructureInfo dataStructureInfo)
       {
           return($@"
 <EntityType Name=""{GetName(dataStructureInfo)}"" customannotation:ClrType=""Common.Queryable.{GetName(dataStructureInfo)}, ServerDom.Model, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"">
   <Key>
     <PropertyRef Name=""ID"" />
   </Key>
   <Property Name=""ID"" Type=""Guid"" Nullable=""false"" />{ConceptualModelEntityTypePropertyTag.Evaluate(dataStructureInfo)}{ConceptualModelEntityTypeNavigationPropertyTag.Evaluate(dataStructureInfo)}
 </EntityType>");
       }
       private string GetEntitySetMappingForMapping(DataStructureInfo dataStructureInfo)
       {
           return($@"
 <EntitySetMapping Name=""{GetName(dataStructureInfo)}"">
   <EntityTypeMapping TypeName=""{EntityFrameworkMapping.ConceptualModelNamespace}.{GetName(dataStructureInfo)}"">
     <MappingFragment StoreEntitySet=""{GetName(dataStructureInfo)}"">
       <ScalarProperty Name=""ID"" ColumnName=""ID"" />{EntitySetMappingPropertyTag.Evaluate(dataStructureInfo)}
     </MappingFragment>
   </EntityTypeMapping>
 </EntitySetMapping>");
       }
        private string GetEntityTypeNodeForConceptualModel(DataStructureInfo dataStructureInfo)
        {
            var assemblyName = string.IsNullOrEmpty(_rhetosBuildEnvironment.OutputAssemblyName) ? "ServerDom.Model, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" : _rhetosBuildEnvironment.OutputAssemblyName;

            return($@"
  <EntityType Name=""{GetName(dataStructureInfo)}"" customannotation:ClrType=""Common.Queryable.{GetName(dataStructureInfo)}, {assemblyName}"">
    <Key>
      <PropertyRef Name=""ID"" />
    </Key>
    <Property Name=""ID"" Type=""Guid"" Nullable=""false"" />{ConceptualModelEntityTypePropertyTag.Evaluate(dataStructureInfo)}{ConceptualModelEntityTypeNavigationPropertyTag.Evaluate(dataStructureInfo)}
  </EntityType>");
        }
Beispiel #5
0
        private string GetEntityTypeNodeForConceptualModel(DataStructureInfo dataStructureInfo)
        {
            var assemblyName = _rhetosBuildEnvironment.OutputAssemblyName;

            return($@"
  <EntityType Name=""{GetName(dataStructureInfo)}"" customannotation:ClrType=""Common.Queryable.{GetName(dataStructureInfo)}, {assemblyName}"">
    <Key>
      <PropertyRef Name=""ID"" />
    </Key>
    <Property Name=""ID"" Type=""Guid"" Nullable=""false"" />{ConceptualModelEntityTypePropertyTag.Evaluate(dataStructureInfo)}{ConceptualModelEntityTypeNavigationPropertyTag.Evaluate(dataStructureInfo)}
  </EntityType>");
        }