Files
newswebappTest/Models/Model1.edmx
lianpi3 a74072b491 add categories(add, list, list news)
minor form changes
add news controller and views
2024-07-28 18:35:11 +03:30

216 lines
12 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
<!-- EF Runtime content -->
<edmx:Runtime>
<!-- SSDL content -->
<edmx:StorageModels>
<Schema Namespace="newswebappModel.Store" Provider="System.Data.SqlClient" ProviderManifestToken="2012" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
<EntityType Name="category">
<Key>
<PropertyRef Name="ID" />
</Key>
<Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="link" Type="nvarchar(max)" />
<Property Name="title" Type="nvarchar(max)" />
</EntityType>
<EntityType Name="news">
<Key>
<PropertyRef Name="ID" />
</Key>
<Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="title" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="image" Type="nvarchar(max)" />
<Property Name="link" Type="nvarchar(max)" Nullable="false" />
<Property Name="summary" Type="nvarchar" MaxLength="200" />
<Property Name="cat" Type="nvarchar(max)" />
<Property Name="tag" Type="nvarchar(max)" />
<Property Name="publishDate" Type="datetime2" Precision="7" />
<Property Name="userID" Type="int" Nullable="false" />
<Property Name="Content" Type="nvarchar(max)" Nullable="false" />
<Property Name="views" Type="int" />
</EntityType>
<EntityType Name="tag">
<Key>
<PropertyRef Name="code" />
</Key>
<Property Name="code" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="link" Type="nvarchar(max)" />
<Property Name="title" Type="nvarchar" MaxLength="50" />
</EntityType>
<EntityType Name="ticket">
<Key>
<PropertyRef Name="ID" />
</Key>
<Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="title" Type="nvarchar" MaxLength="50" />
<Property Name="content" Type="nvarchar(max)" />
<Property Name="priority" Type="nvarchar" MaxLength="50" />
<Property Name="senderid" Type="int" />
</EntityType>
<EntityType Name="user">
<Key>
<PropertyRef Name="ID" />
</Key>
<Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="usename" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="password" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="displayname" Type="nvarchar" MaxLength="50" />
<Property Name="role" Type="int" Nullable="false" />
</EntityType>
<EntityContainer Name="newswebappModelStoreContainer">
<EntitySet Name="category" EntityType="Self.category" Schema="dbo" store:Type="Tables" />
<EntitySet Name="news" EntityType="Self.news" Schema="dbo" store:Type="Tables" />
<EntitySet Name="tag" EntityType="Self.tag" Schema="dbo" store:Type="Tables" />
<EntitySet Name="ticket" EntityType="Self.ticket" Schema="dbo" store:Type="Tables" />
<EntitySet Name="user" EntityType="Self.user" Schema="dbo" store:Type="Tables" />
</EntityContainer>
</Schema></edmx:StorageModels>
<!-- CSDL content -->
<edmx:ConceptualModels>
<Schema Namespace="newswebappModel" Alias="Self" annotation:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
<EntityContainer Name="newswebappEntities" annotation:LazyLoadingEnabled="true">
<EntitySet Name="categories" EntityType="newswebappModel.category" />
<EntitySet Name="news" EntityType="newswebappModel.news" />
<EntitySet Name="tags" EntityType="newswebappModel.tag" />
<EntitySet Name="tickets" EntityType="newswebappModel.ticket" />
<EntitySet Name="users" EntityType="newswebappModel.user" />
</EntityContainer>
<EntityType Name="category">
<Key>
<PropertyRef Name="ID" />
</Key>
<Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="link" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
<Property Name="title" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
</EntityType>
<EntityType Name="news">
<Key>
<PropertyRef Name="ID" />
</Key>
<Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="title" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
<Property Name="image" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
<Property Name="link" Type="String" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="true" />
<Property Name="summary" Type="String" MaxLength="200" FixedLength="false" Unicode="true" />
<Property Name="cat" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
<Property Name="tag" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
<Property Name="publishDate" Type="DateTime" Precision="7" />
<Property Name="userID" Type="Int32" Nullable="false" />
<Property Name="Content" Type="String" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="true" />
<Property Name="views" Type="Int32" />
</EntityType>
<EntityType Name="tag">
<Key>
<PropertyRef Name="code" />
</Key>
<Property Name="code" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="link" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
<Property Name="title" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
</EntityType>
<EntityType Name="ticket">
<Key>
<PropertyRef Name="ID" />
</Key>
<Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="title" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
<Property Name="content" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
<Property Name="priority" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
<Property Name="senderid" Type="Int32" />
</EntityType>
<EntityType Name="user">
<Key>
<PropertyRef Name="ID" />
</Key>
<Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="usename" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
<Property Name="password" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
<Property Name="displayname" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
<Property Name="role" Type="Int32" Nullable="false" />
</EntityType>
</Schema>
</edmx:ConceptualModels>
<!-- C-S mapping content -->
<edmx:Mappings>
<Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
<EntityContainerMapping StorageEntityContainer="newswebappModelStoreContainer" CdmEntityContainer="newswebappEntities">
<EntitySetMapping Name="categories">
<EntityTypeMapping TypeName="newswebappModel.category">
<MappingFragment StoreEntitySet="category">
<ScalarProperty Name="title" ColumnName="title" />
<ScalarProperty Name="link" ColumnName="link" />
<ScalarProperty Name="ID" ColumnName="ID" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="news">
<EntityTypeMapping TypeName="newswebappModel.news">
<MappingFragment StoreEntitySet="news">
<ScalarProperty Name="views" ColumnName="views" />
<ScalarProperty Name="Content" ColumnName="Content" />
<ScalarProperty Name="userID" ColumnName="userID" />
<ScalarProperty Name="publishDate" ColumnName="publishDate" />
<ScalarProperty Name="tag" ColumnName="tag" />
<ScalarProperty Name="cat" ColumnName="cat" />
<ScalarProperty Name="summary" ColumnName="summary" />
<ScalarProperty Name="link" ColumnName="link" />
<ScalarProperty Name="image" ColumnName="image" />
<ScalarProperty Name="title" ColumnName="title" />
<ScalarProperty Name="ID" ColumnName="ID" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="tags">
<EntityTypeMapping TypeName="newswebappModel.tag">
<MappingFragment StoreEntitySet="tag">
<ScalarProperty Name="title" ColumnName="title" />
<ScalarProperty Name="link" ColumnName="link" />
<ScalarProperty Name="code" ColumnName="code" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="tickets">
<EntityTypeMapping TypeName="newswebappModel.ticket">
<MappingFragment StoreEntitySet="ticket">
<ScalarProperty Name="senderid" ColumnName="senderid" />
<ScalarProperty Name="priority" ColumnName="priority" />
<ScalarProperty Name="content" ColumnName="content" />
<ScalarProperty Name="title" ColumnName="title" />
<ScalarProperty Name="ID" ColumnName="ID" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="users">
<EntityTypeMapping TypeName="newswebappModel.user">
<MappingFragment StoreEntitySet="user">
<ScalarProperty Name="role" ColumnName="role" />
<ScalarProperty Name="displayname" ColumnName="displayname" />
<ScalarProperty Name="password" ColumnName="password" />
<ScalarProperty Name="usename" ColumnName="usename" />
<ScalarProperty Name="ID" ColumnName="ID" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
</EntityContainerMapping>
</Mapping>
</edmx:Mappings>
</edmx:Runtime>
<!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
<Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
<Connection>
<DesignerInfoPropertySet>
<DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
</DesignerInfoPropertySet>
</Connection>
<Options>
<DesignerInfoPropertySet>
<DesignerProperty Name="ValidateOnBuild" Value="true" />
<DesignerProperty Name="EnablePluralization" Value="true" />
<DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
<DesignerProperty Name="UseLegacyProvider" Value="false" />
<DesignerProperty Name="CodeGenerationStrategy" Value="None" />
</DesignerInfoPropertySet>
</Options>
<!-- Diagram content (shape and connector positions) -->
<Diagrams></Diagrams>
</Designer>
</edmx:Edmx>