-
Notifications
You must be signed in to change notification settings - Fork 1
/
Customer.cs
29 lines (26 loc) · 1.06 KB
/
Customer.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace E4425.Models
{
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
public partial class Customer
{
public int CustomerId { get; set; }
[Required(ErrorMessage = "Customer cannot be empty")]
public string CustomerName { get; set; }
[Required(ErrorMessage = "Country should be chosen")]
public Nullable<int> CountryId { get; set; }
[Required(ErrorMessage = "City should be chosen")]
public Nullable<int> CityId { get; set; }
public virtual City City { get; set; }
public virtual Country Country { get; set; }
}
}