public override void BeforeProcess() { foreach (PhysicalObject physical_object in (ArrayList)BusinessObjects["PHYSICAL"]) { IEF.AssertNewFactOrFail("Weight", new object[] { physical_object, physical_object.Weight }); IEF.AssertNewFactOrFail("GWeight", new object[] { physical_object, physical_object.GWeight }); } }
public override void BeforeProcess() { foreach (Customer customer in (ArrayList)BusinessObjects["CUSTOMERS"]) { IEF.AssertNewFactOrFail("Location", new object[] { customer, customer.CountryCode }); foreach (Transaction transaction in customer.Transactions) { IEF.AssertNewFactOrFail("Involved In", new object[] { customer, transaction }); IEF.AssertNewFactOrFail("Amount", new object[] { transaction, transaction.Amount }); } } }
public AccessHelper(IEF ief) { ef = ief; }
public AccessHelper() { ef = new EF(db); }