Hello
table 1: product
ProductId(PK)
Name
Type
Code
table 2: product detail
ProductDetailId(PK)
Detail
ProductId(FK)
now, the the ralation is 1:m between product and product detail, how to change it to 1:1 relation?
and now i want to get content from two table.
code as below:
ProductEntity entity = new ProductEntity(productId);
//get details
ProductDetailEntity entityDetail = entity.CsbProductDetail[0];
above code will generate two sqls, how to do it in ONE sql?
any ideas will be appreciated.
Thanks in advance.