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