hi! how to create a many to many mapping in xamarin forms with entity framework sqlite? my two tables are customer
public class Customer
{
[Key]
public int CustomerId { get; set; }
public string MangerFullName { get { return FirstName + " " + LastName; } }
public string EntrpriseName { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
// public string MyDetail { get; set; }
public string Image { get; set; }
public string Phone { get; set; }
public string Mail { get; set; }
public string Adress { get; set; }
public string CIN { get; set; } and product
public class Product
{
[Key]
public int ProductId { get; set; }
public string Code { get; set; }
public string Designation { get; set; }
public int Quantite { get; set; }
public int Order_Qty { get; set; }
public double Price { get; set; }
public string Type { get; set; }}
↧
mapping entity framework
↧