File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 132132 <Compile Include =" Global.asax.cs" >
133133 <DependentUpon >Global.asax</DependentUpon >
134134 </Compile >
135+ <Compile Include =" Models\Contacto.cs" />
136+ <Compile Include =" Models\Telefono.cs" />
135137 <Compile Include =" Properties\AssemblyInfo.cs" />
136138 </ItemGroup >
137139 <ItemGroup >
172174 </ItemGroup >
173175 <ItemGroup >
174176 <Folder Include =" App_Data\" />
175- <Folder Include =" Models\" />
176177 </ItemGroup >
177178 <ItemGroup >
178179 <Content Include =" fonts\glyphicons-halflings-regular.woff" />
Original file line number Diff line number Diff line change 1+ using System ;
2+ using System . Collections . Generic ;
3+ using System . Linq ;
4+ using System . Web ;
5+
6+ namespace Agenda . Models
7+ {
8+ public class Contacto
9+ {
10+ public int Id { get ; set ; }
11+ public string Nombre { get ; set ; }
12+ public ICollection < Telefono > Telefonos { get ; set ; }
13+ }
14+
15+ }
Original file line number Diff line number Diff line change 1+ using System ;
2+ using System . Collections . Generic ;
3+ using System . Linq ;
4+ using System . Web ;
5+
6+ namespace Agenda . Models
7+ {
8+ public class Telefono
9+ {
10+ public int Id { get ; set ; }
11+ public string Numero { get ; set ; }
12+ public string Nombre { get ; set ; }
13+
14+ public Contacto Contacto { get ; set ; }
15+ }
16+ }
Original file line number Diff line number Diff line change 11# Pasos
22
33 1 . Creación de la aplicación web
4- 2 . Instalar NuGet EntityFramework
4+ 2 . Instalar NuGet EntityFramework
5+ 3 . Agregar clases del modelo
6+
You can’t perform that action at this time.
0 commit comments