Initial commit

This commit is contained in:
Daniel Cortes
2020-05-22 01:32:58 -04:00
commit 7fbf91f8b1
319 changed files with 285697 additions and 0 deletions

View File

View File

@@ -0,0 +1 @@
8097f4edf41aa5bc4b5237bdafac295feefc9434

View File

@@ -0,0 +1,13 @@
C:\Users\dell\source\repos\Proyecto\DAL\bin\Debug\DAL.dll.config
C:\Users\dell\source\repos\Proyecto\DAL\bin\Debug\DAL.dll
C:\Users\dell\source\repos\Proyecto\DAL\bin\Debug\DAL.pdb
C:\Users\dell\source\repos\Proyecto\DAL\bin\Debug\EntityFramework.dll
C:\Users\dell\source\repos\Proyecto\DAL\bin\Debug\EntityFramework.SqlServer.dll
C:\Users\dell\source\repos\Proyecto\DAL\bin\Debug\Markdown.dll
C:\Users\dell\source\repos\Proyecto\DAL\bin\Debug\EntityFramework.xml
C:\Users\dell\source\repos\Proyecto\DAL\bin\Debug\EntityFramework.SqlServer.xml
C:\Users\dell\source\repos\Proyecto\DAL\obj\Debug\DAL.csprojAssemblyReference.cache
C:\Users\dell\source\repos\Proyecto\DAL\obj\Debug\DAL.csproj.CoreCompileInputs.cache
C:\Users\dell\source\repos\Proyecto\DAL\obj\Debug\DAL.csproj.CopyComplete
C:\Users\dell\source\repos\Proyecto\DAL\obj\Debug\DAL.dll
C:\Users\dell\source\repos\Proyecto\DAL\obj\Debug\DAL.pdb

Binary file not shown.

BIN
DAL/obj/Debug/DAL.dll Executable file

Binary file not shown.

BIN
DAL/obj/Debug/DAL.pdb Executable file

Binary file not shown.

Binary file not shown.

View File

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,136 @@
<?xml version="1.0" encoding="utf-8"?>
<Schema Namespace="EntitiesModel" 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">
<EntityType Name="Comentario">
<Key>
<PropertyRef Name="id" />
</Key>
<Property Name="id" Type="Int32" Nullable="false" />
<Property Name="post_id" Type="Int32" Nullable="false" />
<Property Name="user_id" Type="Int32" Nullable="false" />
<NavigationProperty Name="post" Relationship="Self.FK_comentario_post" FromRole="comentario" ToRole="post" />
<NavigationProperty Name="user" Relationship="Self.FK_comentario_user" FromRole="comentario" ToRole="user" />
<Property Name="html" Type="String" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="false" />
</EntityType>
<EntityType Name="Post">
<Key>
<PropertyRef Name="id" />
</Key>
<Property Name="id" Type="Int32" Nullable="false" />
<Property Name="title" Type="String" MaxLength="255" FixedLength="false" Unicode="false" Nullable="false" />
<Property Name="markdown" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" Nullable="false" />
<NavigationProperty Name="comentarios" Relationship="Self.FK_comentario_post" FromRole="post" ToRole="comentario" />
<NavigationProperty Name="votos" Relationship="Self.FK_voto_post" FromRole="post" ToRole="voto" />
<Property Name="user_id" Type="Int32" Nullable="false" />
<NavigationProperty Name="user" Relationship="EntitiesModel.FK_post_user" FromRole="Post" ToRole="User" />
<Property Name="html" Type="String" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="false" />
</EntityType>
<EntityType Name="User">
<Key>
<PropertyRef Name="id" />
</Key>
<Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="username" Type="String" MaxLength="255" FixedLength="false" Unicode="false" Nullable="false" />
<Property Name="password" Type="Binary" MaxLength="32" FixedLength="true" Nullable="false" />
<Property Name="salt" Type="Binary" MaxLength="20" FixedLength="true" Nullable="false" />
<NavigationProperty Name="comentarios" Relationship="Self.FK_comentario_user" FromRole="user" ToRole="comentario" />
<NavigationProperty Name="votos" Relationship="Self.FK_voto_user" FromRole="user" ToRole="voto" />
<NavigationProperty Name="posts" Relationship="EntitiesModel.FK_post_user" FromRole="User" ToRole="Post" />
</EntityType>
<EntityType Name="Voto">
<Key>
<PropertyRef Name="id" />
</Key>
<Property Name="id" Type="Int32" Nullable="false" />
<Property Name="post_id" Type="Int32" Nullable="false" />
<Property Name="user_id" Type="Int32" Nullable="false" />
<Property Name="positivo" Type="Boolean" Nullable="false" />
<NavigationProperty Name="post" Relationship="Self.FK_voto_post" FromRole="voto" ToRole="post" />
<NavigationProperty Name="user" Relationship="Self.FK_voto_user" FromRole="voto" ToRole="user" />
</EntityType>
<Association Name="FK_comentario_post">
<End Role="post" Type="EntitiesModel.Post" Multiplicity="1" />
<End Role="comentario" Type="EntitiesModel.Comentario" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="post">
<PropertyRef Name="id" />
</Principal>
<Dependent Role="comentario">
<PropertyRef Name="post_id" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_comentario_user">
<End Role="user" Type="EntitiesModel.User" Multiplicity="1" />
<End Role="comentario" Type="EntitiesModel.Comentario" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="user">
<PropertyRef Name="id" />
</Principal>
<Dependent Role="comentario">
<PropertyRef Name="user_id" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_voto_post">
<End Role="post" Type="EntitiesModel.Post" Multiplicity="1" />
<End Role="voto" Type="EntitiesModel.Voto" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="post">
<PropertyRef Name="id" />
</Principal>
<Dependent Role="voto">
<PropertyRef Name="post_id" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_voto_user">
<End Role="user" Type="EntitiesModel.User" Multiplicity="1" />
<End Role="voto" Type="EntitiesModel.Voto" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="user">
<PropertyRef Name="id" />
</Principal>
<Dependent Role="voto">
<PropertyRef Name="user_id" />
</Dependent>
</ReferentialConstraint>
</Association>
<EntityContainer Name="Entities" annotation:LazyLoadingEnabled="true">
<EntitySet Name="Comentarios" EntityType="EntitiesModel.Comentario" />
<EntitySet Name="Posts" EntityType="EntitiesModel.Post" />
<EntitySet Name="Users" EntityType="EntitiesModel.User" />
<EntitySet Name="Votos" EntityType="EntitiesModel.Voto" />
<AssociationSet Name="FK_comentario_post" Association="Self.FK_comentario_post">
<End Role="post" EntitySet="Posts" />
<End Role="comentario" EntitySet="Comentarios" />
</AssociationSet>
<AssociationSet Name="FK_comentario_user" Association="Self.FK_comentario_user">
<End Role="user" EntitySet="Users" />
<End Role="comentario" EntitySet="Comentarios" />
</AssociationSet>
<AssociationSet Name="FK_voto_post" Association="Self.FK_voto_post">
<End Role="post" EntitySet="Posts" />
<End Role="voto" EntitySet="Votos" />
</AssociationSet>
<AssociationSet Name="FK_voto_user" Association="Self.FK_voto_user">
<End Role="user" EntitySet="Users" />
<End Role="voto" EntitySet="Votos" />
</AssociationSet>
<AssociationSet Name="FK_post_user" Association="EntitiesModel.FK_post_user">
<End Role="User" EntitySet="Users" />
<End Role="Post" EntitySet="Posts" />
</AssociationSet>
</EntityContainer>
<Association Name="FK_post_user">
<End Type="EntitiesModel.User" Role="User" Multiplicity="1" />
<End Type="EntitiesModel.Post" Role="Post" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="User">
<PropertyRef Name="id" />
</Principal>
<Dependent Role="Post">
<PropertyRef Name="user_id" />
</Dependent>
</ReferentialConstraint>
</Association>
</Schema>

View File

@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="utf-8"?>
<Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
<EntityContainerMapping StorageEntityContainer="EntitiesModelStoreContainer" CdmEntityContainer="Entities">
<EntitySetMapping Name="Comentarios">
<EntityTypeMapping TypeName="EntitiesModel.Comentario">
<MappingFragment StoreEntitySet="comentario">
<ScalarProperty Name="html" ColumnName="html" />
<ScalarProperty Name="id" ColumnName="id" />
<ScalarProperty Name="post_id" ColumnName="post_id" />
<ScalarProperty Name="user_id" ColumnName="user_id" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="Posts">
<EntityTypeMapping TypeName="EntitiesModel.Post">
<MappingFragment StoreEntitySet="post">
<ScalarProperty Name="html" ColumnName="html" />
<ScalarProperty Name="user_id" ColumnName="user_id" />
<ScalarProperty Name="id" ColumnName="id" />
<ScalarProperty Name="title" ColumnName="title" />
<ScalarProperty Name="markdown" ColumnName="markdown" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="Users">
<EntityTypeMapping TypeName="EntitiesModel.User">
<MappingFragment StoreEntitySet="user">
<ScalarProperty Name="id" ColumnName="id" />
<ScalarProperty Name="username" ColumnName="username" />
<ScalarProperty Name="password" ColumnName="password" />
<ScalarProperty Name="salt" ColumnName="salt" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="Votos">
<EntityTypeMapping TypeName="EntitiesModel.Voto">
<MappingFragment StoreEntitySet="voto">
<ScalarProperty Name="id" ColumnName="id" />
<ScalarProperty Name="post_id" ColumnName="post_id" />
<ScalarProperty Name="user_id" ColumnName="user_id" />
<ScalarProperty Name="positivo" ColumnName="positivo" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
</EntityContainerMapping>
</Mapping>

View File

@@ -0,0 +1,126 @@
<?xml version="1.0" encoding="utf-8"?>
<Schema Namespace="EntitiesModel.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="comentario">
<Key>
<PropertyRef Name="id" />
</Key>
<Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="html" Type="text" Nullable="false" />
<Property Name="post_id" Type="int" Nullable="false" />
<Property Name="user_id" Type="int" Nullable="false" />
</EntityType>
<EntityType Name="post">
<Key>
<PropertyRef Name="id" />
</Key>
<Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="title" Type="varchar" MaxLength="255" Nullable="false" />
<Property Name="markdown" Type="text" Nullable="false" />
<Property Name="html" Type="text" Nullable="false" />
<Property Name="user_id" Type="int" Nullable="false" />
</EntityType>
<EntityType Name="user">
<Key>
<PropertyRef Name="id" />
</Key>
<Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="username" Type="varchar" MaxLength="255" Nullable="false" />
<Property Name="password" Type="binary" MaxLength="32" Nullable="false" />
<Property Name="salt" Type="binary" MaxLength="20" Nullable="false" />
</EntityType>
<EntityType Name="voto">
<Key>
<PropertyRef Name="id" />
</Key>
<Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="post_id" Type="int" Nullable="false" />
<Property Name="user_id" Type="int" Nullable="false" />
<Property Name="positivo" Type="bit" Nullable="false" />
</EntityType>
<Association Name="FK_comentario_post">
<End Role="post" Type="Self.post" Multiplicity="1" />
<End Role="comentario" Type="Self.comentario" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="post">
<PropertyRef Name="id" />
</Principal>
<Dependent Role="comentario">
<PropertyRef Name="post_id" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_comentario_user">
<End Role="user" Type="Self.user" Multiplicity="1" />
<End Role="comentario" Type="Self.comentario" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="user">
<PropertyRef Name="id" />
</Principal>
<Dependent Role="comentario">
<PropertyRef Name="user_id" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_post_user">
<End Role="user" Type="Self.user" Multiplicity="1" />
<End Role="post" Type="Self.post" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="user">
<PropertyRef Name="id" />
</Principal>
<Dependent Role="post">
<PropertyRef Name="user_id" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_voto_post">
<End Role="post" Type="Self.post" Multiplicity="1" />
<End Role="voto" Type="Self.voto" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="post">
<PropertyRef Name="id" />
</Principal>
<Dependent Role="voto">
<PropertyRef Name="post_id" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_voto_user">
<End Role="user" Type="Self.user" Multiplicity="1" />
<End Role="voto" Type="Self.voto" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="user">
<PropertyRef Name="id" />
</Principal>
<Dependent Role="voto">
<PropertyRef Name="user_id" />
</Dependent>
</ReferentialConstraint>
</Association>
<EntityContainer Name="EntitiesModelStoreContainer">
<EntitySet Name="comentario" EntityType="Self.comentario" Schema="dbo" store:Type="Tables" />
<EntitySet Name="post" EntityType="Self.post" Schema="dbo" store:Type="Tables" />
<EntitySet Name="user" EntityType="Self.user" Schema="dbo" store:Type="Tables" />
<EntitySet Name="voto" EntityType="Self.voto" Schema="dbo" store:Type="Tables" />
<AssociationSet Name="FK_comentario_post" Association="Self.FK_comentario_post">
<End Role="post" EntitySet="post" />
<End Role="comentario" EntitySet="comentario" />
</AssociationSet>
<AssociationSet Name="FK_comentario_user" Association="Self.FK_comentario_user">
<End Role="user" EntitySet="user" />
<End Role="comentario" EntitySet="comentario" />
</AssociationSet>
<AssociationSet Name="FK_post_user" Association="Self.FK_post_user">
<End Role="user" EntitySet="user" />
<End Role="post" EntitySet="post" />
</AssociationSet>
<AssociationSet Name="FK_voto_post" Association="Self.FK_voto_post">
<End Role="post" EntitySet="post" />
<End Role="voto" EntitySet="voto" />
</AssociationSet>
<AssociationSet Name="FK_voto_user" Association="Self.FK_voto_user">
<End Role="user" EntitySet="user" />
<End Role="voto" EntitySet="voto" />
</AssociationSet>
</EntityContainer>
</Schema>