You've already forked linux-packaging-mono
acceptance-tests
data
debian
docs
external
Newtonsoft.Json
api-doc-tools
api-snapshot
aspnetwebstack
packages
src
test
Microsoft.TestCommon
Microsoft.Web.Helpers.Test
Microsoft.Web.Http.Data.Test
Controllers
Models
CatalogEntities.cs
Cities.cs
Northwind.Designer.cs.REMOVED.git-id
Northwind.edmx
Properties
ChangeSetTests.cs
DataControllerDescriptionTest.cs
DataControllerQueryTests.cs
DataControllerSubmitTests.cs
MetadataExtensionsTests.cs
Microsoft.Web.Http.Data.Test.csproj
TestHelpers.cs
packages.config
Microsoft.Web.Mvc.Test
Microsoft.Web.WebPages.OAuth.Test
SPA.Test
System.Json.Test.Integration
System.Json.Test.Unit
System.Net.Http.Formatting.Test.Integration
System.Net.Http.Formatting.Test.Unit
System.Web.Helpers.Test
System.Web.Http.Integration.Test
System.Web.Http.SelfHost.Test
System.Web.Http.Test
System.Web.Http.WebHost.Test
System.Web.Mvc.Test
System.Web.Razor.Test
System.Web.WebPages.Administration.Test
System.Web.WebPages.Deployment.Test
System.Web.WebPages.Razor.Test
System.Web.WebPages.Test
WebMatrix.Data.Test
WebMatrix.WebData.Test
Settings.StyleCop
tools
.gitattributes
.gitignore
License.txt
README.md
Runtime.msbuild
Runtime.sln
Runtime.xunit
Settings.StyleCop
build.cmd
binary-reference-assemblies
bockbuild
boringssl
cecil
cecil-legacy
corefx
corert
helix-binaries
ikdasm
ikvm
illinker-test-assets
linker
llvm
nuget-buildtasks
nunit-lite
roslyn-binaries
rx
xunit-binaries
how-to-bump-roslyn-binaries.md
ikvm-native
libgc
llvm
m4
man
mcs
mk
mono
msvc
po
runtime
samples
scripts
support
tools
COPYING.LIB
LICENSE
Makefile.am
Makefile.in
NEWS
README.md
acinclude.m4
aclocal.m4
autogen.sh
code_of_conduct.md
compile
config.guess
config.h.in
config.rpath
config.sub
configure.REMOVED.git-id
configure.ac.REMOVED.git-id
depcomp
install-sh
ltmain.sh.REMOVED.git-id
missing
mkinstalldirs
mono-uninstalled.pc.in
test-driver
winconfig.h
172 lines
5.3 KiB
C#
172 lines
5.3 KiB
C#
![]() |
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
|
|||
|
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.ComponentModel.DataAnnotations;
|
|||
|
using System.ComponentModel.DataAnnotations.Schema;
|
|||
|
|
|||
|
namespace Microsoft.Web.Http.Data.Test.Models
|
|||
|
{
|
|||
|
public partial class Category
|
|||
|
{
|
|||
|
public Category()
|
|||
|
{
|
|||
|
this.Products = new HashSet<Product>();
|
|||
|
}
|
|||
|
|
|||
|
[Key]
|
|||
|
public int CategoryID { get; set; }
|
|||
|
public string CategoryName { get; set; }
|
|||
|
public string Description { get; set; }
|
|||
|
public byte[] Picture { get; set; }
|
|||
|
|
|||
|
public ICollection<Product> Products { get; set; }
|
|||
|
}
|
|||
|
|
|||
|
public partial class Customer
|
|||
|
{
|
|||
|
public Customer()
|
|||
|
{
|
|||
|
this.Orders = new HashSet<Order>();
|
|||
|
}
|
|||
|
|
|||
|
[Key]
|
|||
|
public string CustomerID { get; set; }
|
|||
|
public string CompanyName { get; set; }
|
|||
|
public string ContactName { get; set; }
|
|||
|
public string ContactTitle { get; set; }
|
|||
|
public string Address { get; set; }
|
|||
|
public string City { get; set; }
|
|||
|
public string Region { get; set; }
|
|||
|
public string PostalCode { get; set; }
|
|||
|
public string Country { get; set; }
|
|||
|
public string Phone { get; set; }
|
|||
|
public string Fax { get; set; }
|
|||
|
|
|||
|
[Association("Customer_Orders", "CustomerID", "CustomerID")]
|
|||
|
public ICollection<Order> Orders { get; set; }
|
|||
|
}
|
|||
|
|
|||
|
public partial class Order
|
|||
|
{
|
|||
|
private List<Order_Detail> _details;
|
|||
|
|
|||
|
[Key]
|
|||
|
public int OrderID { get; set; }
|
|||
|
public string CustomerID { get; set; }
|
|||
|
public Nullable<int> EmployeeID { get; set; }
|
|||
|
public Nullable<System.DateTime> OrderDate { get; set; }
|
|||
|
public Nullable<System.DateTime> RequiredDate { get; set; }
|
|||
|
public Nullable<System.DateTime> ShippedDate { get; set; }
|
|||
|
public Nullable<int> ShipVia { get; set; }
|
|||
|
public Nullable<decimal> Freight { get; set; }
|
|||
|
[StringLength(50, MinimumLength = 0)]
|
|||
|
public string ShipName { get; set; }
|
|||
|
public string ShipAddress { get; set; }
|
|||
|
public string ShipCity { get; set; }
|
|||
|
public string ShipRegion { get; set; }
|
|||
|
public string ShipPostalCode { get; set; }
|
|||
|
public string ShipCountry { get; set; }
|
|||
|
|
|||
|
[Association("Customer_Orders", "CustomerID", "CustomerID", IsForeignKey = true)]
|
|||
|
public Customer Customer { get; set; }
|
|||
|
|
|||
|
[Association("Order_Details", "OrderID", "OrderID")]
|
|||
|
public List<Order_Detail> Order_Details
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
if (this._details == null)
|
|||
|
{
|
|||
|
this._details = new List<Order_Detail>();
|
|||
|
}
|
|||
|
return this._details;
|
|||
|
}
|
|||
|
set
|
|||
|
{
|
|||
|
this._details = value;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
public Shipper Shipper { get; set; }
|
|||
|
}
|
|||
|
|
|||
|
public partial class Order_Detail
|
|||
|
{
|
|||
|
[Key]
|
|||
|
[Column(Order = 1)]
|
|||
|
public int OrderID { get; set; }
|
|||
|
[Key]
|
|||
|
[Column(Order = 2)]
|
|||
|
public int ProductID { get; set; }
|
|||
|
public decimal UnitPrice { get; set; }
|
|||
|
public short Quantity { get; set; }
|
|||
|
public float Discount { get; set; }
|
|||
|
|
|||
|
public Order Order { get; set; }
|
|||
|
public Product Product { get; set; }
|
|||
|
}
|
|||
|
|
|||
|
public partial class Shipper
|
|||
|
{
|
|||
|
public Shipper()
|
|||
|
{
|
|||
|
this.Orders = new HashSet<Order>();
|
|||
|
}
|
|||
|
|
|||
|
[Key]
|
|||
|
public int ShipperID { get; set; }
|
|||
|
public string CompanyName { get; set; }
|
|||
|
public string Phone { get; set; }
|
|||
|
|
|||
|
public ICollection<Order> Orders { get; set; }
|
|||
|
}
|
|||
|
|
|||
|
public partial class Product
|
|||
|
{
|
|||
|
public Product()
|
|||
|
{
|
|||
|
this.Order_Details = new HashSet<Order_Detail>();
|
|||
|
}
|
|||
|
|
|||
|
[Key]
|
|||
|
public int ProductID { get; set; }
|
|||
|
public string ProductName { get; set; }
|
|||
|
public Nullable<int> SupplierID { get; set; }
|
|||
|
public Nullable<int> CategoryID { get; set; }
|
|||
|
public string QuantityPerUnit { get; set; }
|
|||
|
public Nullable<decimal> UnitPrice { get; set; }
|
|||
|
public Nullable<short> UnitsInStock { get; set; }
|
|||
|
public Nullable<short> UnitsOnOrder { get; set; }
|
|||
|
public Nullable<short> ReorderLevel { get; set; }
|
|||
|
public bool Discontinued { get; set; }
|
|||
|
|
|||
|
public Category Category { get; set; }
|
|||
|
public ICollection<Order_Detail> Order_Details { get; set; }
|
|||
|
public Supplier Supplier { get; set; }
|
|||
|
}
|
|||
|
|
|||
|
public partial class Supplier
|
|||
|
{
|
|||
|
public Supplier()
|
|||
|
{
|
|||
|
this.Products = new HashSet<Product>();
|
|||
|
}
|
|||
|
|
|||
|
[Key]
|
|||
|
public int SupplierID { get; set; }
|
|||
|
public string CompanyName { get; set; }
|
|||
|
public string ContactName { get; set; }
|
|||
|
public string ContactTitle { get; set; }
|
|||
|
public string Address { get; set; }
|
|||
|
public string City { get; set; }
|
|||
|
public string Region { get; set; }
|
|||
|
public string PostalCode { get; set; }
|
|||
|
public string Country { get; set; }
|
|||
|
public string Phone { get; set; }
|
|||
|
public string Fax { get; set; }
|
|||
|
public string HomePage { get; set; }
|
|||
|
|
|||
|
public virtual ICollection<Product> Products { get; set; }
|
|||
|
}
|
|||
|
}
|