Movies included in database as well and handled in site
This commit is contained in:
@ -11,19 +11,11 @@ namespace Vidly.Controllers
|
||||
{
|
||||
public class CustomersController : Controller
|
||||
{
|
||||
List<Customer> customers = null;
|
||||
private ApplicationDbContext _context;
|
||||
|
||||
public CustomersController()
|
||||
{
|
||||
_context = new ApplicationDbContext();
|
||||
|
||||
customers = new List<Customer>
|
||||
{
|
||||
new Customer {Name="Nils Persson", Id=1},
|
||||
new Customer {Name="Pelle Rundström",Id=2},
|
||||
new Customer {Name="Ulla Ulriksson",Id=3}
|
||||
};
|
||||
}
|
||||
|
||||
protected override void Dispose(bool disposing)
|
||||
@ -51,7 +43,7 @@ namespace Vidly.Controllers
|
||||
[Route("Customers/Details/{nr}")]
|
||||
public ActionResult Customer(int nr)
|
||||
{
|
||||
var customer = _context.Customers.SingleOrDefault(c => c.Id == nr);
|
||||
var customer = _context.Customers.Include(c => c.MembershipType).SingleOrDefault(c => c.Id == nr);
|
||||
if (customer== null)
|
||||
return HttpNotFound();
|
||||
return View(customer);
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Data.Entity;
|
||||
using System.Web.Mvc;
|
||||
using Vidly.Models;
|
||||
using Vidly.ViewModels;
|
||||
@ -10,70 +11,83 @@ namespace Vidly.Controllers
|
||||
{
|
||||
public class MoviesController : Controller
|
||||
{
|
||||
List<Movie> movies = null;
|
||||
//List<Movie> movies = null;
|
||||
private ApplicationDbContext _context;
|
||||
|
||||
public MoviesController()
|
||||
{
|
||||
movies = new List<Movie>
|
||||
{
|
||||
new Movie{Name="Never say never again", Id=1},
|
||||
new Movie{Name="Doctor Zivago",Id=2},
|
||||
new Movie{Name="Hånkentomtarna",Id=3}
|
||||
};
|
||||
_context = new ApplicationDbContext();
|
||||
//movies = new List<Movie>
|
||||
//{
|
||||
// new Movie{Name="Never say never again", Id=1},
|
||||
// new Movie{Name="Doctor Zivago",Id=2},
|
||||
// new Movie{Name="Hånkentomtarna",Id=3}
|
||||
//};
|
||||
}
|
||||
// GET: Movies
|
||||
public ActionResult Random()
|
||||
{
|
||||
var movie = new Movie() { Name = "Shrek!" };
|
||||
var customers = new List<Customer>
|
||||
{
|
||||
new Customer {Name="Customer 1"},
|
||||
new Customer {Name="Customer 2"}
|
||||
};
|
||||
//var viewResult = new ViewResult();
|
||||
//viewResult.ViewData.Model = movie;
|
||||
//// GET: Movies
|
||||
//public ActionResult Random()
|
||||
//{
|
||||
// var movie = new Movie() { Name = "Shrek!" };
|
||||
// var customers = new List<Customer>
|
||||
// {
|
||||
// new Customer {Name="Customer 1"},
|
||||
// new Customer {Name="Customer 2"}
|
||||
// };
|
||||
// //var viewResult = new ViewResult();
|
||||
// //viewResult.ViewData.Model = movie;
|
||||
|
||||
var viewModel = new RandomMovieViewModel()
|
||||
{
|
||||
Movie = movie,
|
||||
Customers = customers
|
||||
};
|
||||
// var viewModel = new RandomMovieViewModel()
|
||||
// {
|
||||
// Movie = movie,
|
||||
// Customers = customers
|
||||
// };
|
||||
|
||||
return View(viewModel);
|
||||
// return View(viewModel);
|
||||
|
||||
//return View(movie);
|
||||
//return Content("Hello World");
|
||||
//return HttpNotFound();
|
||||
//return new EmptyResult();
|
||||
//return RedirectToAction("Index", "Home",new { page = 1, sortBy = "name" });
|
||||
// //return View(movie);
|
||||
// //return Content("Hello World");
|
||||
// //return HttpNotFound();
|
||||
// //return new EmptyResult();
|
||||
// //return RedirectToAction("Index", "Home",new { page = 1, sortBy = "name" });
|
||||
|
||||
|
||||
}
|
||||
//}
|
||||
|
||||
public ActionResult Edit(int id)
|
||||
{
|
||||
return Content("id=" + id);
|
||||
}
|
||||
//public ActionResult Edit(int id)
|
||||
//{
|
||||
// return Content("id=" + id);
|
||||
//}
|
||||
|
||||
public ActionResult Index(int? pageIndex, string sortBy)
|
||||
{
|
||||
if (!pageIndex.HasValue)
|
||||
pageIndex = 1;
|
||||
//public ActionResult Index(int? pageIndex, string sortBy)
|
||||
//{
|
||||
// if (!pageIndex.HasValue)
|
||||
// pageIndex = 1;
|
||||
|
||||
if (string.IsNullOrWhiteSpace(sortBy))
|
||||
sortBy = "Name";
|
||||
// if (string.IsNullOrWhiteSpace(sortBy))
|
||||
// sortBy = "Name";
|
||||
|
||||
return Content($"pageIndex={pageIndex}&sortBy={sortBy}");
|
||||
}
|
||||
// return Content($"pageIndex={pageIndex}&sortBy={sortBy}");
|
||||
//}
|
||||
|
||||
public ActionResult Movies()
|
||||
{
|
||||
var viewModel = new MoviesViewModel()
|
||||
{
|
||||
Movies = movies
|
||||
Movies = _context.Movies.Include(m => m.MovieGenre).ToList()
|
||||
};
|
||||
return View(viewModel);
|
||||
}
|
||||
|
||||
[Route("Movies/Movies/{nr}")]
|
||||
public ActionResult Movie(int nr)
|
||||
{
|
||||
var movie = _context.Movies.Include(c => c.MovieGenre).SingleOrDefault(c => c.Id == nr);
|
||||
if (movie == null)
|
||||
return HttpNotFound();
|
||||
return View(movie);
|
||||
}
|
||||
|
||||
|
||||
[Route("movies/released/{year}/{month:regex(\\d{2}):range(1,12)}")]
|
||||
public ActionResult ByReleaseDate(int year, int month)
|
||||
{
|
||||
|
||||
29
Vidly/Migrations/201901201153250_NameToMembershiptype.Designer.cs
generated
Normal file
29
Vidly/Migrations/201901201153250_NameToMembershiptype.Designer.cs
generated
Normal file
@ -0,0 +1,29 @@
|
||||
// <auto-generated />
|
||||
namespace Vidly.Migrations
|
||||
{
|
||||
using System.CodeDom.Compiler;
|
||||
using System.Data.Entity.Migrations;
|
||||
using System.Data.Entity.Migrations.Infrastructure;
|
||||
using System.Resources;
|
||||
|
||||
[GeneratedCode("EntityFramework.Migrations", "6.2.0-61023")]
|
||||
public sealed partial class NameToMembershiptype : IMigrationMetadata
|
||||
{
|
||||
private readonly ResourceManager Resources = new ResourceManager(typeof(NameToMembershiptype));
|
||||
|
||||
string IMigrationMetadata.Id
|
||||
{
|
||||
get { return "201901201153250_NameToMembershiptype"; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Source
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Target
|
||||
{
|
||||
get { return Resources.GetString("Target"); }
|
||||
}
|
||||
}
|
||||
}
|
||||
18
Vidly/Migrations/201901201153250_NameToMembershiptype.cs
Normal file
18
Vidly/Migrations/201901201153250_NameToMembershiptype.cs
Normal file
@ -0,0 +1,18 @@
|
||||
namespace Vidly.Migrations
|
||||
{
|
||||
using System;
|
||||
using System.Data.Entity.Migrations;
|
||||
|
||||
public partial class NameToMembershiptype : DbMigration
|
||||
{
|
||||
public override void Up()
|
||||
{
|
||||
AddColumn("dbo.MembershipTypes", "Name", c => c.String(maxLength: 50));
|
||||
}
|
||||
|
||||
public override void Down()
|
||||
{
|
||||
DropColumn("dbo.MembershipTypes", "Name");
|
||||
}
|
||||
}
|
||||
}
|
||||
126
Vidly/Migrations/201901201153250_NameToMembershiptype.resx
Normal file
126
Vidly/Migrations/201901201153250_NameToMembershiptype.resx
Normal file
@ -0,0 +1,126 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="Target" xml:space="preserve">
|
||||
<value>H4sIAAAAAAAEAOVd227ruBV9L9B/EPTUFhk7lyY4DewZ5DhJazQ3xMlB3wJaoh3hSJRHonJiFPNlfegn9RdK6mbxJlGyLMstBhjEErn25uYiuUnurfOff/179Mun5xofMAgdH43Nk8GxaUBk+baDlmMzwoufvpi//Pz7341ubO/T+JaVO6PlSE0Ujs13jFeXw2FovUMPhAPPsQI/9Bd4YPneENj+8PT4+C/Dk5MhJBAmwTKM0XOEsOPB+Af5OfGRBVc4Au69b0M3TJ+TN7MY1XgAHgxXwIJj85tju+tBUs40rlwHEB1m0F2YBkDIxwATDS9fQzjDgY+WsxV5ANyX9QqScgvghjDV/HJTXLcRx6e0EcNNxQzKikLsezUBT85Sqwz56o1sa+ZWI3a7IfbFa9rq2HZjcxKLgIFp8MIuJ25AC7KmHWQVjoz48VHe+YQj9L8jYxK5OArgGMEIB8A9Mp6iuetYf4frF/87RGMUuW5RKaIWecc8II+eAn8FA7x+hotU1altGkO23pCvmFcr1EkaMUX47NQ0HohwMHdh3ueFBs+wH8C/QgQDgKH9BDCGAaIYMLaaIJ2TRf+fSSMkIyPFNO7B5x1ES/w+Nk/Pz03j1vmEdvYk1eAVOWRgkUo4iKBEw3Kp03AWzUMrcObQfvEf4I/wDlLFM02++r4LAaqNew+9OenZd2dFcTZ2/LrGGko+gA9nGVu1FNY0nqEbF6NPkvGaM+yNL3sb+N6z7xZYyxV5m/lRYNFO8MvLvYBgCTGr9Wi4GRylQ4ZXS3PgsNUObfjodXu9EXF+rDUgymXMnCV6Xd1CWBjoJxe1Vb2OgrjzpujeR/h9q2ZfO6Hlk5XsGWBYA0ibgNmERDleRr/7fFm4ClcPEA+yioME8jYgcD/84PugiHhkaNfbsPdUl71n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vIk7yZLsCzBO9PyDx74/GPtBUKWxL0VoiRRuy28VkyoSsRugqVMwrbJTxwnYddrrDwpu4lqyoTsJqs1n46tPw1lNfe4DklOVA52r9CvtUnIet1qoIuZrTXgWs1e3c5FObCs0NaWTknSZ2vY++T97jI9+fDT/aReipGmDXNMG8XTV4aG7Cxn8/8gO7MvCZmb7eB+8zC7TL0siV/4n8q47EGOkCS7YP95lV1zTXX52PPktHrZkz0jW+pA7j9HsmuyqW4oe062WpmQPePavtbPPTNNewnde16jGOHPd6s8YbE0XzG56x2b9twnnZ/sUZRpYxXpjBrZjDJxVUllvFDWzxREsq9lApOPPcnzR1TCNoNAKXBTRC1UnbjCCxYmBEGuUKJcbL22po5MaWPTMuViFeleZbLTda1UdlqmXLYiiar7nE35OJFlHugkakpzPPufiynN5JKlElcsUWWB2IeUe8m0pCIrumo7Uhrsd0iplq0YhZlAFJFrh5NZ2YpJ2hw6NTIpxSA04hYV/hEj4pqFznIDQf9JIwQtxiHKy0zRws/8Mk6jrIgQUYSBTbylqwA7C2Bh8preWsUf7ItvAujd6RzaU/QY4VWESZPJdOwyp+TUvyuTH6eLsjqPHlf0V9hGE4iaDr3te0RfI8e1c71vJQfJCgjqOKZ3RLQvMb0rWq5zpAcfaQKl5sv93RforVwCFj6iGfiATXQj9LuDS2CtN9cGKpDqjmDNPrp2wDIAXphibOqTn4TDtvf5838B1mP5UstrAAA=</value>
|
||||
</data>
|
||||
<data name="DefaultSchema" xml:space="preserve">
|
||||
<value>dbo</value>
|
||||
</data>
|
||||
</root>
|
||||
29
Vidly/Migrations/201901201156548_updateNewfieldsInMembership.Designer.cs
generated
Normal file
29
Vidly/Migrations/201901201156548_updateNewfieldsInMembership.Designer.cs
generated
Normal file
@ -0,0 +1,29 @@
|
||||
// <auto-generated />
|
||||
namespace Vidly.Migrations
|
||||
{
|
||||
using System.CodeDom.Compiler;
|
||||
using System.Data.Entity.Migrations;
|
||||
using System.Data.Entity.Migrations.Infrastructure;
|
||||
using System.Resources;
|
||||
|
||||
[GeneratedCode("EntityFramework.Migrations", "6.2.0-61023")]
|
||||
public sealed partial class updateNewfieldsInMembership : IMigrationMetadata
|
||||
{
|
||||
private readonly ResourceManager Resources = new ResourceManager(typeof(updateNewfieldsInMembership));
|
||||
|
||||
string IMigrationMetadata.Id
|
||||
{
|
||||
get { return "201901201156548_updateNewfieldsInMembership"; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Source
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Target
|
||||
{
|
||||
get { return Resources.GetString("Target"); }
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,21 @@
|
||||
namespace Vidly.Migrations
|
||||
{
|
||||
using System;
|
||||
using System.Data.Entity.Migrations;
|
||||
|
||||
public partial class updateNewfieldsInMembership : DbMigration
|
||||
{
|
||||
public override void Up()
|
||||
{
|
||||
Sql("UPDATE MembershipTypes SET NAME='Pay as You Go' WHERE ID=1");
|
||||
Sql("UPDATE MembershipTypes SET NAME='Monthly' WHERE ID=2");
|
||||
Sql("UPDATE MembershipTypes SET NAME='Quarterly' WHERE ID=3");
|
||||
Sql("UPDATE MembershipTypes SET NAME='Yearly' WHERE ID=4");
|
||||
|
||||
}
|
||||
|
||||
public override void Down()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,126 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="Target" xml:space="preserve">
|
||||
<value>H4sIAAAAAAAEAOVd227ruBV9L9B/EPTUFhk7lyY4DewZ5DhJazQ3xMlB3wJaoh3hSJRHonJiFPNlfegn9RdK6mbxJlGyLMstBhjEErn25uYiuUnurfOff/179Mun5xofMAgdH43Nk8GxaUBk+baDlmMzwoufvpi//Pz7341ubO/T+JaVO6PlSE0Ujs13jFeXw2FovUMPhAPPsQI/9Bd4YPneENj+8PT4+C/Dk5MhJBAmwTKM0XOEsOPB+Af5OfGRBVc4Au69b0M3TJ+TN7MY1XgAHgxXwIJj85tju+tBUs40rlwHEB1m0F2YBkDIxwATDS9fQzjDgY+WsxV5ANyX9QqScgvghjDV/HJTXLcRx6e0EcNNxQzKikLsezUBT85Sqwz56o1sa+ZWI3a7IfbFa9rq2HZjcxKLgIFp8MIuJ25AC7KmHWQVjoz48VHe+YQj9L8jYxK5OArgGMEIB8A9Mp6iuetYf4frF/87RGMUuW5RKaIWecc8II+eAn8FA7x+hotU1altGkO23pCvmFcr1EkaMUX47NQ0HohwMHdh3ueFBs+wH8C/QgQDgKH9BDCGAaIYMLaaIJ2TRf+fSSMkIyPFNO7B5x1ES/w+Nk/Pz03j1vmEdvYk1eAVOWRgkUo4iKBEw3Kp03AWzUMrcObQfvEf4I/wDlLFM02++r4LAaqNew+9OenZd2dFcTZ2/LrGGko+gA9nGVu1FNY0nqEbF6NPkvGaM+yNL3sb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GBCGXhrHxm9tpUaWxtl2wJLcHm0TgX5wYIPZ6OsCoQdct4lyig8MNG2r7BsDeljNPjPQOQmkHRhHnrfCiqqhRhtN/4ofHxnT8BU5v0bkxQthDR1qfCZduzYvyYPPFf3tIBLM9U1OZrekKjunbdn9bNp5LW2Sqlto0zgZ/XBHG5P1rViNL+rOwvIk7yZLsCzBO9PyDx74/GPtBUKWxL0VoiRRuy28VkyoSsRugqVMwrbJTxwnYddrrDwpu4lqyoTsJqs1n46tPw1lNfe4DklOVA52r9CvtUnIet1qoIuZrTXgWs1e3c5FObCs0NaWTknSZ2vY++T97jI9+fDT/aReipGmDXNMG8XTV4aG7Cxn8/8gO7MvCZmb7eB+8zC7TL0siV/4n8q47EGOkCS7YP95lV1zTXX52PPktHrZkz0jW+pA7j9HsmuyqW4oe062WpmQPePavtbPPTNNewnde16jGOHPd6s8YbE0XzG56x2b9twnnZ/sUZRpYxXpjBrZjDJxVUllvFDWzxREsq9lApOPPcnzR1TCNoNAKXBTRC1UnbjCCxYmBEGuUKJcbL22po5MaWPTMuViFeleZbLTda1UdlqmXLYiiar7nE35OJFlHugkakpzPPufiynN5JKlElcsUWWB2IeUe8m0pCIrumo7Uhrsd0iplq0YhZlAFJFrh5NZ2YpJ2hw6NTIpxSA04hYV/hEj4pqFznIDQf9JIwQtxiHKy0zRws/8Mk6jrIgQUYSBTbylqwA7C2Bh8preWsUf7ItvAujd6RzaU/QY4VWESZPJdOwyp+TUvyuTH6eLsjqPHlf0V9hGE4iaDr3te0RfI8e1c71vJQfJCgjqOKZ3RLQvMb0rWq5zpAcfaQKl5sv93RforVwCFj6iGfiATXQj9LuDS2CtN9cGKpDqjmDNPrp2wDIAXphibOqTn4TDtvf5838B1mP5UstrAAA=</value>
|
||||
</data>
|
||||
<data name="DefaultSchema" xml:space="preserve">
|
||||
<value>dbo</value>
|
||||
</data>
|
||||
</root>
|
||||
29
Vidly/Migrations/201901201226210_BirthdateInCustomer.Designer.cs
generated
Normal file
29
Vidly/Migrations/201901201226210_BirthdateInCustomer.Designer.cs
generated
Normal file
@ -0,0 +1,29 @@
|
||||
// <auto-generated />
|
||||
namespace Vidly.Migrations
|
||||
{
|
||||
using System.CodeDom.Compiler;
|
||||
using System.Data.Entity.Migrations;
|
||||
using System.Data.Entity.Migrations.Infrastructure;
|
||||
using System.Resources;
|
||||
|
||||
[GeneratedCode("EntityFramework.Migrations", "6.2.0-61023")]
|
||||
public sealed partial class BirthdateInCustomer : IMigrationMetadata
|
||||
{
|
||||
private readonly ResourceManager Resources = new ResourceManager(typeof(BirthdateInCustomer));
|
||||
|
||||
string IMigrationMetadata.Id
|
||||
{
|
||||
get { return "201901201226210_BirthdateInCustomer"; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Source
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Target
|
||||
{
|
||||
get { return Resources.GetString("Target"); }
|
||||
}
|
||||
}
|
||||
}
|
||||
18
Vidly/Migrations/201901201226210_BirthdateInCustomer.cs
Normal file
18
Vidly/Migrations/201901201226210_BirthdateInCustomer.cs
Normal file
@ -0,0 +1,18 @@
|
||||
namespace Vidly.Migrations
|
||||
{
|
||||
using System;
|
||||
using System.Data.Entity.Migrations;
|
||||
|
||||
public partial class BirthdateInCustomer : DbMigration
|
||||
{
|
||||
public override void Up()
|
||||
{
|
||||
AddColumn("dbo.Customers", "BirthDate", c => c.DateTime());
|
||||
}
|
||||
|
||||
public override void Down()
|
||||
{
|
||||
DropColumn("dbo.Customers", "BirthDate");
|
||||
}
|
||||
}
|
||||
}
|
||||
126
Vidly/Migrations/201901201226210_BirthdateInCustomer.resx
Normal file
126
Vidly/Migrations/201901201226210_BirthdateInCustomer.resx
Normal file
@ -0,0 +1,126 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="Target" xml:space="preserve">
|
||||
<value>H4sIAAAAAAAEAOVd227ruBV9L9B/EPTUFhk7lyY4DewZ5DhJGzQ3xMlB3wJaYhzhSJRHonJiFPNlfegn9RdK6mZeJUqWZbvFAANHItfe3FwkN8m9df7zr3+PfvkMfOsDRrEXorF9NDi0LYic0PXQfGwn+O2nL/YvP//+d6MrN/i0vhXlTmg5UhPFY/sd48X5cBg77zAA8SDwnCiMwzc8cMJgCNxweHx4+Jfh0dEQEgibYFnW6ClB2Atg+gf5cxIiBy5wAvy70IV+nD8nb6YpqnUPAhgvgAPH9jfP9ZeDrJxtXfgeIDpMof9mWwChEANMNDx/ieEURyGaTxfkAfCflwtIyr0BP4a55uer4qaNODymjRiuKhZQThLjMGgIeHSSW2UoVm9lW7u0GrHbFbEvXtJWp7Yb25NUBIxsSxR2PvEjWpA37aCocGCljw/Kziccof8dWJPEx0kExwgmOAL+gfWYzHzP+TtcPoffIRqjxPdZpYha5B33gDx6jMIFjPDyCb7lqt64tjXk6w3FimU1pk7Wi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sgaCOY35HRPsS07ui+bJEug+RIVBuvtLffYbBwidg8QOagg/YRjdCv1s4B85ydW2gA6nvCN7so0sPzCMQxDnGqj75k3DYDT5//i9/i0IimWwAAA==</value>
|
||||
</data>
|
||||
<data name="DefaultSchema" xml:space="preserve">
|
||||
<value>dbo</value>
|
||||
</data>
|
||||
</root>
|
||||
29
Vidly/Migrations/201901201316381_AddDatesToMovie.Designer.cs
generated
Normal file
29
Vidly/Migrations/201901201316381_AddDatesToMovie.Designer.cs
generated
Normal file
@ -0,0 +1,29 @@
|
||||
// <auto-generated />
|
||||
namespace Vidly.Migrations
|
||||
{
|
||||
using System.CodeDom.Compiler;
|
||||
using System.Data.Entity.Migrations;
|
||||
using System.Data.Entity.Migrations.Infrastructure;
|
||||
using System.Resources;
|
||||
|
||||
[GeneratedCode("EntityFramework.Migrations", "6.2.0-61023")]
|
||||
public sealed partial class AddDatesToMovie : IMigrationMetadata
|
||||
{
|
||||
private readonly ResourceManager Resources = new ResourceManager(typeof(AddDatesToMovie));
|
||||
|
||||
string IMigrationMetadata.Id
|
||||
{
|
||||
get { return "201901201316381_AddDatesToMovie"; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Source
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Target
|
||||
{
|
||||
get { return Resources.GetString("Target"); }
|
||||
}
|
||||
}
|
||||
}
|
||||
29
Vidly/Migrations/201901201316381_AddDatesToMovie.cs
Normal file
29
Vidly/Migrations/201901201316381_AddDatesToMovie.cs
Normal file
@ -0,0 +1,29 @@
|
||||
namespace Vidly.Migrations
|
||||
{
|
||||
using System;
|
||||
using System.Data.Entity.Migrations;
|
||||
|
||||
public partial class AddDatesToMovie : DbMigration
|
||||
{
|
||||
public override void Up()
|
||||
{
|
||||
CreateTable(
|
||||
"dbo.Movies",
|
||||
c => new
|
||||
{
|
||||
Id = c.Int(nullable: false, identity: true),
|
||||
Name = c.String(),
|
||||
ReleaseDate = c.DateTime(nullable: false),
|
||||
DateAdded = c.DateTime(nullable: false),
|
||||
NumberInStock = c.Int(nullable: false),
|
||||
})
|
||||
.PrimaryKey(t => t.Id);
|
||||
|
||||
}
|
||||
|
||||
public override void Down()
|
||||
{
|
||||
DropTable("dbo.Movies");
|
||||
}
|
||||
}
|
||||
}
|
||||
126
Vidly/Migrations/201901201316381_AddDatesToMovie.resx
Normal file
126
Vidly/Migrations/201901201316381_AddDatesToMovie.resx
Normal file
@ -0,0 +1,126 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="Target" xml:space="preserve">
|
||||
<value>H4sIAAAAAAAEAOVdW2/juBV+L9D/IOipLbJxLk0wDexdZJzJNmhuiJNB3wJaYhxhJMorUZkExf6yfdif1L9QUldeJUqWbXmLBRaOSH7n8PAjeXg5nP/+9vv4p/fAt95gFHshmtiH+we2BZETuh5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Ys1L63qVMRSd8b9jZ5v77wefFS/nbi2eX79x0D9zsFKTVecltbIPz/Qcj7UKLcq+XgdoPbNxnPXnMn5g8Vxj6AwEtFzNX2g9U3zTXdgfbAI37bhaQPjGy5A7n9wPNNk0136j1wsrUKLx8Y17Y1f26ZacZT6NaDxeW4J7FZ+bjfyrGu1heSz53dH5jY7jwkjZ+tUbTBtA0x4gYh4ipxTaG2ktAsXFyWlX1XishDzw0jpTO2SwL4ZJWc7G0+dbyeTljVvbQCqyx6ofpAQVGwNNRIcqUc9WLb1TV3kWorm+epF6sJr62Tnc+YtbLzPPWyNUGrm4+RV/dAVXSWSWC8MqZ++LHvyshZ1dMNDZNfXdjALsW6czVpeIWiaaFTezV1l0LbezEKN4Bo7lnuTiR7Lybps+u0iFyXr0wSh4v55xSJ0xd7iwqC/uOKCDqcq1XmuUIvYeHxCRoVWaRraxi4xA87j7D3AhxMkul5WPq+anrGQE9l59C9QncJXiaYVJkMxz63/049xzr5aXg+r/P4bkn/ivuoAlHTo+eId+hz4vluqfelYotaA0Fd0vz0ibYlpqdQi48S6TZEhkC5+UpP+hEGS5+AxXdoBt5gF90I/a7hAjgf1YGEDqS5IXizjy88sIhAEOcYVXnyJ+GwG7z/+D8Ul8HmVXQAAA==</value>
|
||||
</data>
|
||||
<data name="DefaultSchema" xml:space="preserve">
|
||||
<value>dbo</value>
|
||||
</data>
|
||||
</root>
|
||||
29
Vidly/Migrations/201901201322198_MovieGenreAdded.Designer.cs
generated
Normal file
29
Vidly/Migrations/201901201322198_MovieGenreAdded.Designer.cs
generated
Normal file
@ -0,0 +1,29 @@
|
||||
// <auto-generated />
|
||||
namespace Vidly.Migrations
|
||||
{
|
||||
using System.CodeDom.Compiler;
|
||||
using System.Data.Entity.Migrations;
|
||||
using System.Data.Entity.Migrations.Infrastructure;
|
||||
using System.Resources;
|
||||
|
||||
[GeneratedCode("EntityFramework.Migrations", "6.2.0-61023")]
|
||||
public sealed partial class MovieGenreAdded : IMigrationMetadata
|
||||
{
|
||||
private readonly ResourceManager Resources = new ResourceManager(typeof(MovieGenreAdded));
|
||||
|
||||
string IMigrationMetadata.Id
|
||||
{
|
||||
get { return "201901201322198_MovieGenreAdded"; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Source
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Target
|
||||
{
|
||||
get { return Resources.GetString("Target"); }
|
||||
}
|
||||
}
|
||||
}
|
||||
32
Vidly/Migrations/201901201322198_MovieGenreAdded.cs
Normal file
32
Vidly/Migrations/201901201322198_MovieGenreAdded.cs
Normal file
@ -0,0 +1,32 @@
|
||||
namespace Vidly.Migrations
|
||||
{
|
||||
using System;
|
||||
using System.Data.Entity.Migrations;
|
||||
|
||||
public partial class MovieGenreAdded : DbMigration
|
||||
{
|
||||
public override void Up()
|
||||
{
|
||||
CreateTable(
|
||||
"dbo.MovieGenres",
|
||||
c => new
|
||||
{
|
||||
Id = c.Byte(nullable: false),
|
||||
Name = c.String(),
|
||||
})
|
||||
.PrimaryKey(t => t.Id);
|
||||
|
||||
AddColumn("dbo.Movies", "MovieGenreId", c => c.Byte(nullable: false));
|
||||
CreateIndex("dbo.Movies", "MovieGenreId");
|
||||
AddForeignKey("dbo.Movies", "MovieGenreId", "dbo.MovieGenres", "Id", cascadeDelete: true);
|
||||
}
|
||||
|
||||
public override void Down()
|
||||
{
|
||||
DropForeignKey("dbo.Movies", "MovieGenreId", "dbo.MovieGenres");
|
||||
DropIndex("dbo.Movies", new[] { "MovieGenreId" });
|
||||
DropColumn("dbo.Movies", "MovieGenreId");
|
||||
DropTable("dbo.MovieGenres");
|
||||
}
|
||||
}
|
||||
}
|
||||
126
Vidly/Migrations/201901201322198_MovieGenreAdded.resx
Normal file
126
Vidly/Migrations/201901201322198_MovieGenreAdded.resx
Normal file
@ -0,0 +1,126 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="Target" xml:space="preserve">
|
||||
<value>H4sIAAAAAAAEAOVdW2/cuhF+L9D/IOipLXy8vjRBauyeA2cdnxqN7SDrBH0zuBK9FiJReySuY6M4v6wP/Un9CyV15VWiriunCBDYEjkzHH4kZ4aa8X///Z/5L8+Bbz3BKPZCtLCPD49sCyIndD20Wdg7/PDTO/uXn//4h/kHN3i2vubtTmk70hPFC/sR4+3ZbBY7jzAA8WHgOVEYhw/40AmDGXDD2cnR0d9mx8czSEjYhJZlzT/vEPYCmPxCfl2GyIFbvAP+dehCP86ekzerhKp1AwIYb4EDF/ZXz/VfDtN2tnXue4DIsIL+g20BhEIMMJHw7EsMVzgK0Wa1JQ+Af/eyhaTdA/BjmEl+VjY3HcTRCR3ErOyYk3J2MQ6DhgSPTzOtzMTurXRrF1ojevtA9Itf6KgT3S3sZcICRrYlMjtb+hFtyKv2MO9wYCWPD4rJJxih/w6s5c7HuwguENzhCPgH1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JRTI4cBUdUndcPUhPnBK8BMpehLGUgYPym85svAwcq7VHzq9kNVdZlAHQJF5nB1XvEY1QfGxpruO5WJF8BoVqFlYmDLXI/qbPMfEWy6j1kmDrZG1VYmhrV9nZ97RprxEbr32ily1qo4rXz1itIlKz1TyVtLPwta2O46JJOferfakhA1JVMMKqao2NUVjJCYpi6CzCt9rmShLOdQUXGlpuCKloem1oPIiDeVJVb8axWztBazOq1bx6xcx1qGZRM9U30+uchY2tMkvlKLarbNxprZYpWDzdpUs9VUYajinR3NlbyzNtW8NbUNxi8po17qqiReeYdUxY6Y/toKTdMoFcNtCGJ6XdVguY2KyTTtPsyBK8Eo60ioCjrVGBOar4yVpaGmXPmFG0lNbao6x7HyC/7+lTJcoZdelMLtk5rP0ftXylB1XXpRSZ9Lp0EdF/nLcmLAMn+pnhjRsbcpSdC/W4+gw5muRZsr9BDmFrQgUd5E+roXA5fYtecR9h6Ag8lrejOd/NmA5LaPfh+xhu4Vut3h7Q6TIZNTx+duwqglXsU/KVbDyzy/3dLf4j6GQMT06I3+LXq/83y3kPtScVmkIUFN/OwemM4lpvfBm5eC0k2IDAll6is8kzsYbH1CLL5FK/AE28hG4PcRboDzUl4N6ojUTwSv9vmFBzYRCOKMRtmf/Eow7AbPP/8P43J5ALCBAAA=</value>
|
||||
</data>
|
||||
<data name="DefaultSchema" xml:space="preserve">
|
||||
<value>dbo</value>
|
||||
</data>
|
||||
</root>
|
||||
29
Vidly/Migrations/201901201436391_AddValuesforMoviesAndGenres.Designer.cs
generated
Normal file
29
Vidly/Migrations/201901201436391_AddValuesforMoviesAndGenres.Designer.cs
generated
Normal file
@ -0,0 +1,29 @@
|
||||
// <auto-generated />
|
||||
namespace Vidly.Migrations
|
||||
{
|
||||
using System.CodeDom.Compiler;
|
||||
using System.Data.Entity.Migrations;
|
||||
using System.Data.Entity.Migrations.Infrastructure;
|
||||
using System.Resources;
|
||||
|
||||
[GeneratedCode("EntityFramework.Migrations", "6.2.0-61023")]
|
||||
public sealed partial class AddValuesforMoviesAndGenres : IMigrationMetadata
|
||||
{
|
||||
private readonly ResourceManager Resources = new ResourceManager(typeof(AddValuesforMoviesAndGenres));
|
||||
|
||||
string IMigrationMetadata.Id
|
||||
{
|
||||
get { return "201901201436391_AddValuesforMoviesAndGenres"; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Source
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Target
|
||||
{
|
||||
get { return Resources.GetString("Target"); }
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,20 @@
|
||||
namespace Vidly.Migrations
|
||||
{
|
||||
using System;
|
||||
using System.Data.Entity.Migrations;
|
||||
|
||||
public partial class AddValuesforMoviesAndGenres : DbMigration
|
||||
{
|
||||
public override void Up()
|
||||
{
|
||||
Sql("INSERT INTO MovieGenres (Id, Name) VALUES (1,'Comedy')");
|
||||
Sql("INSERT INTO MovieGenres (Id, Name) VALUES (2, 'Action')");
|
||||
Sql("INSERT INTO MovieGenres (Id, Name) VALUES (3, 'Family')");
|
||||
Sql("INSERT INTO MovieGenres (Id, Name) VALUES (4, 'Romance')");
|
||||
}
|
||||
|
||||
public override void Down()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,126 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="Target" xml:space="preserve">
|
||||
<value>H4sIAAAAAAAEAOVdW2/cuhF+L9D/IOipLXy8vjRBauyeA2cdnxqN7SDrBH0zuBK9FiJReySuY6M4v6wP/Un9CyV15VWiriunCBDYEjkzHH4kZ4aa8X///Z/5L8+Bbz3BKPZCtLCPD49sCyIndD20Wdg7/PDTO/uXn//4h/kHN3i2vubtTmk70hPFC/sR4+3ZbBY7jzAA8WHgOVEYhw/40AmDGXDD2cnR0d9mx8czSEjYhJZlzT/vEPYCmPxCfl2GyIFbvAP+dehCP86ekzerhKp1AwIYb4EDF/ZXz/VfDtN2tnXue4DIsIL+g20BhEIMMJHw7EsMVzgK0Wa1JQ+Af/eyhaTdA/BjmEl+VjY3HcTRCR3ErOyYk3J2MQ6DhgSPTzOtzMTurXRrF1ojevtA9Itf6KgT3S3sZcICRrYlMjtb+hFtyKv2MO9wYCWPD4rJJxih/w6s5c7HuwguENzhCPgH1qfd2vecf8CXu/AbRAu0831WKCIWecc9II8+ReEWRvjlM3zIRL1ybWvG95uJHYtuTJ90EFcIn57Y1g1hDtY+LOacGfAKhxH8FSIYAQzdTwBjGCFKAyZak7gLvOj/OTcCMrJSbOsaPH+EaIMfF/bJmze2dek9Qzd/kknwBXlkYZFOONpBhYTVXN97EX68IALnrOnPd15Q2/EqXu3WsRN5a+jehTfwe/wR0hHndN6HoQ8BaizQNQzWBBKP3pbSKSfg/Qs2GN0NePI2yXRUkrWtz9BPmtEn6UIvoHkvtr2MwuBz6DNwF5rc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ReeYdUxY6Y/toKTdMoFcNtCGJ6XdVguY2KyTTtPsyBK8Eo60ioCjrVGBOar4yVpaGmXPmFG0lNbao6x7HyC/7+lTJcoZdelMLtk5rP0ftXylB1XXpRSZ9Lp0EdF/nLcmLAMn+pnhjRsbcpSdC/W4+gw5muRZsr9BDmFrQgUd5E+roXA5fYtecR9h6Ag8lrejOd/NmA5LaPfh+xhu4Vut3h7Q6TIZNTx+duwqglXsU/KVbDyzy/3dLf4j6GQMT06I3+LXq/83y3kPtScVmkIUFN/OwemM4lpvfBm5eC0k2IDAll6is8kzsYbH1CLL5FK/AE28hG4PcRboDzUl4N6ojUTwSv9vmFBzYRCOKMRtmf/Eow7AbPP/8P43J5ALCBAAA=</value>
|
||||
</data>
|
||||
<data name="DefaultSchema" xml:space="preserve">
|
||||
<value>dbo</value>
|
||||
</data>
|
||||
</root>
|
||||
29
Vidly/Migrations/201901201503276_AddingaFewMovies.Designer.cs
generated
Normal file
29
Vidly/Migrations/201901201503276_AddingaFewMovies.Designer.cs
generated
Normal file
@ -0,0 +1,29 @@
|
||||
// <auto-generated />
|
||||
namespace Vidly.Migrations
|
||||
{
|
||||
using System.CodeDom.Compiler;
|
||||
using System.Data.Entity.Migrations;
|
||||
using System.Data.Entity.Migrations.Infrastructure;
|
||||
using System.Resources;
|
||||
|
||||
[GeneratedCode("EntityFramework.Migrations", "6.2.0-61023")]
|
||||
public sealed partial class AddingaFewMovies : IMigrationMetadata
|
||||
{
|
||||
private readonly ResourceManager Resources = new ResourceManager(typeof(AddingaFewMovies));
|
||||
|
||||
string IMigrationMetadata.Id
|
||||
{
|
||||
get { return "201901201503276_AddingaFewMovies"; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Source
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Target
|
||||
{
|
||||
get { return Resources.GetString("Target"); }
|
||||
}
|
||||
}
|
||||
}
|
||||
21
Vidly/Migrations/201901201503276_AddingaFewMovies.cs
Normal file
21
Vidly/Migrations/201901201503276_AddingaFewMovies.cs
Normal file
@ -0,0 +1,21 @@
|
||||
namespace Vidly.Migrations
|
||||
{
|
||||
using System;
|
||||
using System.Data.Entity.Migrations;
|
||||
|
||||
public partial class AddingaFewMovies : DbMigration
|
||||
{
|
||||
public override void Up()
|
||||
{
|
||||
Sql("INSERT INTO Movies ( Name,ReleaseDate,DateAdded,NumberInStock,MovieGenreId) VALUES ( 'Hangover','1985-06-01','2015-06-05',3,1)");
|
||||
Sql("INSERT INTO Movies ( Name,ReleaseDate,DateAdded,NumberInStock,MovieGenreId) VALUES ( 'Die Hard','1988-11-15','2015-06-05',3,2)");
|
||||
Sql("INSERT INTO Movies ( Name,ReleaseDate,DateAdded,NumberInStock,MovieGenreId) VALUES ( 'The Terminator','1975-08-15','2015-06-05',7,2)");
|
||||
Sql("INSERT INTO Movies ( Name,ReleaseDate,DateAdded,NumberInStock,MovieGenreId) VALUES ( 'Toy Story','1995-02-07','2015-06-05',2,3)");
|
||||
Sql("INSERT INTO Movies ( Name,ReleaseDate,DateAdded,NumberInStock,MovieGenreId) VALUES ( 'Titanic','1998-12-01','2015-06-05',8,4)");
|
||||
}
|
||||
|
||||
public override void Down()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
126
Vidly/Migrations/201901201503276_AddingaFewMovies.resx
Normal file
126
Vidly/Migrations/201901201503276_AddingaFewMovies.resx
Normal file
@ -0,0 +1,126 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="Target" xml:space="preserve">
|
||||
<value>H4sIAAAAAAAEAOVdW2/cuhF+L9D/IOipLXy8vjRBauyeA2cdnxqN7SDrBH0zuBK9FiJReySuY6M4v6wP/Un9CyV15VWiriunCBDYEjkzHH4kZ4aa8X///Z/5L8+Bbz3BKPZCtLCPD49sCyIndD20Wdg7/PDTO/uXn//4h/kHN3i2vubtTmk70hPFC/sR4+3ZbBY7jzAA8WHgOVEYhw/40AmDGXDD2cnR0d9mx8czSEjYhJZlzT/vEPYCmPxCfl2GyIFbvAP+dehCP86ekzerhKp1AwIYb4EDF/ZXz/VfDtN2tnXue4DIsIL+g20BhEIMMJHw7EsMVzgK0Wa1JQ+Af/eyhaTdA/BjmEl+VjY3HcTRCR3ErOyYk3J2MQ6DhgSPTzOtzMTurXRrF1ojevtA9Itf6KgT3S3sZcICRrYlMjtb+hFtyKv2MO9wYCWPD4rJJxih/w6s5c7HuwguENzhCPgH1qfd2vecf8CXu/AbRAu0831WKCIWecc9II8+ReEWRvjlM3zIRL1ybWvG95uJHYtuTJ90EFcIn57Y1g1hDtY+LOacGfAKhxH8FSIYAQzdTwBjGCFKAyZak7gLvOj/OTcCMrJSbOsaPH+EaIMfF/bJmze2dek9Qzd/kknwBXlkYZFOONpBhYTVXN97EX68IALnrOnPd15Q2/EqXu3WsRN5a+jehTfwe/wR0hHndN6H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BazOq1bx6xcx1qGZRM9U30+uchY2tMkvlKLarbNxprZYpWDzdpUs9VUYajinR3NlbyzNtW8NbUNxi8po17qqiReeYdUxY6Y/toKTdMoFcNtCGJ6XdVguY2KyTTtPsyBK8Eo60ioCjrVGBOar4yVpaGmXPmFG0lNbao6x7HyC/7+lTJcoZdelMLtk5rP0ftXylB1XXpRSZ9Lp0EdF/nLcmLAMn+pnhjRsbcpSdC/W4+gw5muRZsr9BDmFrQgUd5E+roXA5fYtecR9h6Ag8lrejOd/NmA5LaPfh+xhu4Vut3h7Q6TIZNTx+duwqglXsU/KVbDyzy/3dLf4j6GQMT06I3+LXq/83y3kPtScVmkIUFN/OwemM4lpvfBm5eC0k2IDAll6is8kzsYbH1CLL5FK/AE28hG4PcRboDzUl4N6ojUTwSv9vmFBzYRCOKMRtmf/Eow7AbPP/8P43J5ALCBAAA=</value>
|
||||
</data>
|
||||
<data name="DefaultSchema" xml:space="preserve">
|
||||
<value>dbo</value>
|
||||
</data>
|
||||
</root>
|
||||
@ -12,6 +12,7 @@ namespace Vidly.Models
|
||||
[Required]
|
||||
[StringLength(255)]
|
||||
public string Name { get; set; }
|
||||
public DateTime? BirthDate { get; set; }
|
||||
public bool IsSubscribedToNewsLetter { get; set; }
|
||||
public MembershipType MembershipType { get; set; }
|
||||
public byte MembershipTypeId { get; set; }
|
||||
|
||||
@ -21,6 +21,7 @@ namespace Vidly.Models
|
||||
public class ApplicationDbContext : IdentityDbContext<ApplicationUser>
|
||||
{
|
||||
public DbSet<Customer> Customers { get; set; }
|
||||
public DbSet<Movie> Movies { get; set; }
|
||||
|
||||
public ApplicationDbContext()
|
||||
// : base("DefaultConnection", throwIfV1Schema: false)
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
@ -8,6 +9,8 @@ namespace Vidly.Models
|
||||
public class MembershipType
|
||||
{
|
||||
public byte Id { get; set; }
|
||||
[StringLength(50)]
|
||||
public string Name { get; set; }
|
||||
public short SignUpFee { get; set; }
|
||||
public byte DurationInMonth { get; set; }
|
||||
public byte DiscountRate { get; set; }
|
||||
|
||||
@ -9,5 +9,11 @@ namespace Vidly.Models
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public DateTime ReleaseDate { get; set; }
|
||||
public DateTime DateAdded { get; set; }
|
||||
public int NumberInStock { get; set; }
|
||||
public MovieGenre MovieGenre { get; set; }
|
||||
public byte MovieGenreId { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
13
Vidly/Models/MovieGenre.cs
Normal file
13
Vidly/Models/MovieGenre.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
namespace Vidly.Models
|
||||
{
|
||||
public class MovieGenre
|
||||
{
|
||||
public byte Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
}
|
||||
}
|
||||
@ -201,6 +201,34 @@
|
||||
<Compile Include="Migrations\201901191449134_ApplyAnnotationsToCustomerName.Designer.cs">
|
||||
<DependentUpon>201901191449134_ApplyAnnotationsToCustomerName.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Migrations\201901201153250_NameToMembershiptype.cs" />
|
||||
<Compile Include="Migrations\201901201153250_NameToMembershiptype.Designer.cs">
|
||||
<DependentUpon>201901201153250_NameToMembershiptype.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Migrations\201901201156548_updateNewfieldsInMembership.cs" />
|
||||
<Compile Include="Migrations\201901201156548_updateNewfieldsInMembership.Designer.cs">
|
||||
<DependentUpon>201901201156548_updateNewfieldsInMembership.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Migrations\201901201226210_BirthdateInCustomer.cs" />
|
||||
<Compile Include="Migrations\201901201226210_BirthdateInCustomer.Designer.cs">
|
||||
<DependentUpon>201901201226210_BirthdateInCustomer.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Migrations\201901201316381_AddDatesToMovie.cs" />
|
||||
<Compile Include="Migrations\201901201316381_AddDatesToMovie.Designer.cs">
|
||||
<DependentUpon>201901201316381_AddDatesToMovie.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Migrations\201901201322198_MovieGenreAdded.cs" />
|
||||
<Compile Include="Migrations\201901201322198_MovieGenreAdded.Designer.cs">
|
||||
<DependentUpon>201901201322198_MovieGenreAdded.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Migrations\201901201436391_AddValuesforMoviesAndGenres.cs" />
|
||||
<Compile Include="Migrations\201901201436391_AddValuesforMoviesAndGenres.Designer.cs">
|
||||
<DependentUpon>201901201436391_AddValuesforMoviesAndGenres.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Migrations\201901201503276_AddingaFewMovies.cs" />
|
||||
<Compile Include="Migrations\201901201503276_AddingaFewMovies.Designer.cs">
|
||||
<DependentUpon>201901201503276_AddingaFewMovies.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Migrations\Configuration.cs" />
|
||||
<Compile Include="Models\AccountViewModels.cs" />
|
||||
<Compile Include="Models\Customer.cs" />
|
||||
@ -208,6 +236,7 @@
|
||||
<Compile Include="Models\ManageViewModels.cs" />
|
||||
<Compile Include="Models\MembershipType.cs" />
|
||||
<Compile Include="Models\Movie.cs" />
|
||||
<Compile Include="Models\MovieGenre.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Startup.cs" />
|
||||
<Compile Include="ViewModels\CustomersViewModel.cs" />
|
||||
@ -276,6 +305,7 @@
|
||||
<Content Include="Views\Customers\Customers.cshtml" />
|
||||
<Content Include="Views\Movies\Movies.cshtml" />
|
||||
<Content Include="Views\Customers\Customer.cshtml" />
|
||||
<Content Include="Views\Movies\Movie.cshtml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="App_Data\" />
|
||||
@ -310,6 +340,27 @@
|
||||
<EmbeddedResource Include="Migrations\201901191449134_ApplyAnnotationsToCustomerName.resx">
|
||||
<DependentUpon>201901191449134_ApplyAnnotationsToCustomerName.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Migrations\201901201153250_NameToMembershiptype.resx">
|
||||
<DependentUpon>201901201153250_NameToMembershiptype.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Migrations\201901201156548_updateNewfieldsInMembership.resx">
|
||||
<DependentUpon>201901201156548_updateNewfieldsInMembership.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Migrations\201901201226210_BirthdateInCustomer.resx">
|
||||
<DependentUpon>201901201226210_BirthdateInCustomer.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Migrations\201901201316381_AddDatesToMovie.resx">
|
||||
<DependentUpon>201901201316381_AddDatesToMovie.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Migrations\201901201322198_MovieGenreAdded.resx">
|
||||
<DependentUpon>201901201322198_MovieGenreAdded.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Migrations\201901201436391_AddValuesforMoviesAndGenres.resx">
|
||||
<DependentUpon>201901201436391_AddValuesforMoviesAndGenres.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Migrations\201901201503276_AddingaFewMovies.resx">
|
||||
<DependentUpon>201901201503276_AddingaFewMovies.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<PropertyGroup>
|
||||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
|
||||
|
||||
@ -8,3 +8,11 @@
|
||||
|
||||
<h1>@Model.Name - @Model.Id</h1>
|
||||
|
||||
<ul >
|
||||
<li>Membership Type: @Model.MembershipType.Name</li>
|
||||
@if (Model.BirthDate != null)
|
||||
{
|
||||
<li>Birthdate : @Model.BirthDate.Value.ToShortDateString()</li>
|
||||
}
|
||||
</ul>
|
||||
|
||||
|
||||
@ -16,7 +16,7 @@ else
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Customer</th>
|
||||
<th >Discount Rate</th>
|
||||
<th >Membership Type</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -24,7 +24,7 @@ else
|
||||
{
|
||||
<tr>
|
||||
<td>@Html.ActionLink(@customer.Name, "Details", "Customers", new { id = @customer.Id }, null)</td>
|
||||
<td>@customer.MembershipType.DiscountRate%</td>
|
||||
<td>@customer.MembershipType.Name</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
|
||||
17
Vidly/Views/Movies/Movie.cshtml
Normal file
17
Vidly/Views/Movies/Movie.cshtml
Normal file
@ -0,0 +1,17 @@
|
||||
@model Vidly.Models.Movie
|
||||
@{
|
||||
ViewBag.Title = "Movie";
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
|
||||
<h2>Movie</h2>
|
||||
|
||||
<h1>@Model.Name - @Model.Id</h1>
|
||||
|
||||
|
||||
<ul>
|
||||
<li>Genre: @Model.MovieGenre.Name</li>
|
||||
<li>Release Date: @Model.ReleaseDate.DayOfWeek,@Model.ReleaseDate.ToLongDateString()</li>
|
||||
<li>Date Added: @Model.DateAdded.DayOfWeek,@Model.DateAdded.ToLongDateString()</li>
|
||||
<li>Number in Stock: @Model.NumberInStock</li>
|
||||
</ul>
|
||||
@ -12,12 +12,21 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
<ul>
|
||||
<table class="table table-bordered table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Movie</th>
|
||||
<th>Genre</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var movie in Model.Movies)
|
||||
{
|
||||
<li>@movie.Name</li>
|
||||
@*<li>@Html.ActionLink(@customer.Name, "Details", "Customers", new { id = @customer.Id }, null)</li>*@
|
||||
<tr>
|
||||
<td>@Html.ActionLink(@movie.Name,"Movies","Movies",new { id = movie.Id },null) </td>
|
||||
<td>@movie.MovieGenre.Name</td>
|
||||
</tr>
|
||||
}
|
||||
</ul>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
}
|
||||
Reference in New Issue
Block a user