public static ContactManager.Proxy.ContactCollection LoadByUser(ContactManager.Proxy.User user) { if ((user == null)) { throw new System.ArgumentNullException("user"); } ContactManager.Proxy.ContactCollection collection = new ContactManager.Proxy.ContactCollection(ContactManager.Proxy.Constants.ContactManagerStoreName, ((System.ServiceModel.Channels.IChannel)(ContactManager.Proxy.Contact.WcfClient.Current.Channel)), "PageLoadByUser", null, user.EntityKey); collection._unspecifiedContactSourceContactSource = null; collection._contactsUserUser = user; 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 PageLoadByUser(int pageIndex, int pageSize, CodeFluent.Runtime.PageOptions pageOptions, ContactManager.Proxy.User user) { if ((user == null)) { throw new System.ArgumentNullException("user"); } ContactManager.Proxy.ContactCollection collection = ContactManager.Proxy.Contact.WcfClient.Current.Channel.PageLoadByUser(pageIndex, pageSize, pageOptions, user.EntityKey); collection._unspecifiedContactSourceContactSource = null; collection._contactsUserUser = user; return(collection); }