Skip to content

Instantly share code, notes, and snippets.

@gurmitteotia
Last active August 29, 2015 14:25
Show Gist options
  • Save gurmitteotia/598ff57aa387bc42b709 to your computer and use it in GitHub Desktop.
Save gurmitteotia/598ff57aa387bc42b709 to your computer and use it in GitHub Desktop.
Domain entities
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