public static ContactManager.Proxy.ContactCollection LoadByContactSource(ContactManager.Proxy.ContactSource contactSource) { if ((contactSource == null)) { throw new System.ArgumentNullException("contactSource"); } ContactManager.Proxy.ContactCollection collection = new ContactManager.Proxy.ContactCollection(ContactManager.Proxy.Constants.ContactManagerStoreName, ((System.ServiceModel.Channels.IChannel)(ContactManager.Proxy.Contact.WcfClient.Current.Channel)), "PageLoadByContactSource", null, contactSource.EntityKey); collection._unspecifiedContactSourceContactSource = contactSource; collection._contactsUserUser = null; collection.LoadKnownItems(); return(collection); }
protected internal void OnEntityDeserializing(System.Runtime.Serialization.StreamingContext context) { this.IsDeserializing = true; this._id = -1; this._email = default(string); this._firstName = default(string); this._lastName = default(string); this._contactSourceId = -1; this._contactSource = null; this._status = ContactManager.Proxy.Status.Valid; this._addressId = -1; this._address = null; this._userId = -1; this._user = null; this._description = default(string); this._raisePropertyChangedEvents = true; this._entityState = CodeFluent.Runtime.CodeFluentEntityState.Created; this._raisePropertyChangedEvents = true; }
public ContactCollection(ContactManager.Proxy.ContactSource unspecifiedContactSourceContactSource, ContactManager.Proxy.User contactsUserUser) { this._unspecifiedContactSourceContactSource = unspecifiedContactSourceContactSource; this._contactsUserUser = contactsUserUser; }
public static ContactManager.Proxy.ContactCollection PageLoadByContactSource(int pageIndex, int pageSize, CodeFluent.Runtime.PageOptions pageOptions, ContactManager.Proxy.ContactSource contactSource) { if ((contactSource == null)) { throw new System.ArgumentNullException("contactSource"); } ContactManager.Proxy.ContactCollection collection = ContactManager.Proxy.Contact.WcfClient.Current.Channel.PageLoadByContactSource(pageIndex, pageSize, pageOptions, contactSource.EntityKey); collection._unspecifiedContactSourceContactSource = contactSource; collection._contactsUserUser = null; return(collection); }