public ProductKey(IAdditiveProductKey additiveProductKey) : base(additiveProductKey.AdditiveProductKey_Id) { }
public static AdditiveProductKey ToAdditiveProductKey(this IAdditiveProductKey k) { return(new AdditiveProductKey(k)); }
public static IQueryable <AdditiveLot> FilterByProductKey(this IRepository <AdditiveLot> lotRepository, IAdditiveProductKey productKey) { if (productKey == null) { return(lotRepository.All()); } return(lotRepository.Filter(l => l.AdditiveProductId == productKey.AdditiveProductKey_Id)); }