This question is locked. New answers and comments are not allowed.
Hi,
great work, but why I cant use interfaces for the navigation properties?
nhibernate can map this, please implement it to :D
that would be very nice :D
great work, but why I cant use interfaces for the navigation properties?
nhibernate can map this, please implement it to :D
public interface IProduct{ int ProductID { get; set; } IList<IOrderDetail> OrderDetails { get; }}public interface IOrderDetail{ int OrderID { get; set; } IProduct Product { get; set; }}public partial class OrderDetail : IOrderDetail{ private int _orderID; public virtual int OrderID { get { return this._orderID; } set { this._orderID = value; } } private IProduct _product; public virtual IProduct Product { get { return this._product; } set { this._product = value; } } }public partial class Product : IProduct{ private int _productID; public virtual int ProductID { get { return this._productID; } set { this._productID = value; } } private IList<IOrderDetail> _orderDetails = new List<IOrderDetail>(); public virtual IList<IOrderDetail> OrderDetails { get { return this._orderDetails; } } }that would be very nice :D