1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
    [Serializable]
    public class AddressCollection : EntityCollection<IAddress>, IAddressCollection<IAddress>
    {
        internal AddressCollection(DAL.CollectionClasses.AddressCollection dalCollection)
        {
            PopulateCollection(dalCollection);
        }
        internal AddressCollection(bool loadAll) 
        {
            if (loadAll) 
            {
                DAL.CollectionClasses.AddressCollection dalCollection = new DAL.CollectionClasses.AddressCollection();
                IPredicateExpression filter = ApplyFilterDeletedRecords(AddressFields.RecordStatus);
                dalCollection.GetMulti(filter);
                PopulateCollection(dalCollection);
            }
        }
    }