Last active
August 29, 2015 14:25
-
-
Save gurmitteotia/598ff57aa387bc42b709 to your computer and use it in GitHub Desktop.
Domain entities
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Product | |
{ | |
public int Id { get; set; } | |
public string Name { get; set; } | |
public string Description { get; set; } | |
public string Category { get; set; } | |
public double Price { get; set; } | |
public float AverageRatings { get; set; } | |
public Brand Brand { get; set; } | |
} | |
public class ProductCategory | |
{ | |
public const string KeyBoard = "Keyboard"; | |
public const string Mouse = "Mouse"; | |
public const string Mobile = "Mobile"; | |
} | |
public class Brand | |
{ | |
public int Id { get; set; } | |
public string Name { get; set; } | |
public string LogoPath { get; set; } | |
public List<Product> Products { get; set; } | |
} | |
public class BrandName | |
{ | |
public const string Samsung = "Samsung"; | |
public const string Lg = "LG"; | |
public const string Dell = "Dell"; | |
public const string Sony = "Sony"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment