public virtual void CopyTo(SoftFluent.SqlServerInMemory.CustomerCollection collection, bool deep) { if ((typeof(System.ICloneable).IsAssignableFrom(typeof(SoftFluent.SqlServerInMemory.Customer)) == false)) { deep = false; } System.Collections.Generic.IEnumerator <SoftFluent.SqlServerInMemory.Customer> enumerator = this.GetEnumerator(); bool b; for (b = enumerator.MoveNext(); b; b = enumerator.MoveNext()) { if ((deep == true)) { collection.Add(((SoftFluent.SqlServerInMemory.Customer)(((System.ICloneable)(enumerator.Current)).Clone()))); } else { collection.Add(enumerator.Current); } } }
public static SoftFluent.SqlServerInMemory.CustomerCollection PageLoadByContactSource(int pageIndex, int pageSize, CodeFluent.Runtime.PageOptions pageOptions, SoftFluent.SqlServerInMemory.ContactSource contactSource) { if ((pageIndex < 0)) { pageIndex = 0; } if ((pageSize < 0)) { if ((pageOptions != null)) { pageSize = pageOptions.DefaultPageSize; } else { pageSize = int.MaxValue; } } SoftFluent.SqlServerInMemory.CustomerCollection ret = new SoftFluent.SqlServerInMemory.CustomerCollection(); System.Data.IDataReader reader = null; try { reader = SoftFluent.SqlServerInMemory.CustomerCollection.PageDataLoadByContactSource(pageOptions, contactSource); if ((reader == null)) { return(ret); } ret.LoadByContactSource(pageIndex, pageSize, pageOptions, reader, contactSource); } finally { if ((reader != null)) { reader.Dispose(); } CodeFluent.Runtime.CodeFluentPersistence.CompleteCommand(SoftFluent.SqlServerInMemory.Constants.SoftFluent_SqlServerInMemoryStoreName); } return(ret); }
public virtual SoftFluent.SqlServerInMemory.CustomerCollection Clone(bool deep) { SoftFluent.SqlServerInMemory.CustomerCollection ret = new SoftFluent.SqlServerInMemory.CustomerCollection(); this.CopyTo(ret, deep); return(ret); }
public static SoftFluent.SqlServerInMemory.CustomerCollection LoadByContactSource(SoftFluent.SqlServerInMemory.ContactSource contactSource) { SoftFluent.SqlServerInMemory.CustomerCollection ret = SoftFluent.SqlServerInMemory.CustomerCollection.PageLoadByContactSource(int.MinValue, int.MaxValue, null, contactSource); return(ret); }
public static SoftFluent.SqlServerInMemory.CustomerCollection LoadAll() { SoftFluent.SqlServerInMemory.CustomerCollection ret = SoftFluent.SqlServerInMemory.CustomerCollection.PageLoadAll(int.MinValue, int.MaxValue, null); return(ret); }