public virtual void CopyTo(ContactManager.AddressCollection collection, bool deep) { if ((typeof(System.ICloneable).IsAssignableFrom(typeof(ContactManager.Address)) == false)) { deep = false; } System.Collections.Generic.IEnumerator <ContactManager.Address> enumerator = this.GetEnumerator(); bool b; for (b = enumerator.MoveNext(); b; b = enumerator.MoveNext()) { if ((deep == true)) { collection.Add(((ContactManager.Address)(((System.ICloneable)(enumerator.Current)).Clone()))); } else { collection.Add(enumerator.Current); } } }
public static ContactManager.AddressCollection PageLoadAll(int pageIndex, int pageSize, CodeFluent.Runtime.PageOptions pageOptions) { if ((pageIndex < 0)) { pageIndex = 0; } if ((pageSize < 0)) { if ((pageOptions != null)) { pageSize = pageOptions.DefaultPageSize; } else { pageSize = int.MaxValue; } } ContactManager.AddressCollection ret = new ContactManager.AddressCollection(); System.Data.IDataReader reader = null; try { reader = ContactManager.AddressCollection.PageDataLoadAll(pageOptions); if ((reader == null)) { return(ret); } ret.LoadAll(pageIndex, pageSize, pageOptions, reader); } finally { if ((reader != null)) { reader.Dispose(); } CodeFluent.Runtime.CodeFluentPersistence.CompleteCommand(ContactManager.Constants.ContactManagerStoreName); } return(ret); }
public virtual void SaveAll(ContactManager.AddressCollection addressCollection) { ContactManager.AddressCollection addressCollection1 = addressCollection; addressCollection1.SaveAll(); }
public virtual ContactManager.AddressCollection Clone(bool deep) { ContactManager.AddressCollection ret = new ContactManager.AddressCollection(); this.CopyTo(ret, deep); return(ret); }
public static ContactManager.AddressCollection LoadAll() { ContactManager.AddressCollection ret = ContactManager.AddressCollection.PageLoadAll(int.MinValue, int.MaxValue, null); return(ret); }