Exemple #1
0
 public virtual bool DeleteByKey(int id)
 {
     ContactManager.Address address = ContactManager.Address.Load(id);
     if ((address == null))
     {
         return(CodeFluentPersistence.DefaultBooleanValue);
     }
     return(address.Delete());
 }
Exemple #2
0
 public virtual bool Save(ContactManager.Address address)
 {
     ContactManager.Address address1 = address;
     if ((address1 == null))
     {
         return(CodeFluentPersistence.DefaultBooleanValue);
     }
     return(address1.Save());
 }
Exemple #3
0
 public virtual string Validate(ContactManager.Address address, string culture)
 {
     System.Globalization.CultureInfo cultureInfo = ConvertUtilities.ToCultureInfo(culture);
     ContactManager.Address           address1    = address;
     if ((address1 == null))
     {
         return(default(string));
     }
     return(address1.Validate(cultureInfo));
 }
Exemple #4
0
        public virtual bool SaveByRef(ref ContactManager.Address address)
        {
            ContactManager.Address address1 = address;
            if ((address1 == null))
            {
                return(CodeFluentPersistence.DefaultBooleanValue);
            }
            bool ret = address1.Save();

            address = address1;
            return(ret);
        }
 protected internal void OnEntityDeserializing(System.Runtime.Serialization.StreamingContext context)
 {
     this.IsDeserializing             = true;
     this._raisePropertyChangedEvents = 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.Status.Valid;
     this._addressId                  = -1;
     this._address                    = null;
     this._userId                     = -1;
     this._user                       = null;
     this._description                = default(string);
     this._entityState                = CodeFluent.Runtime.CodeFluentEntityState.Created;
     this._raisePropertyChangedEvents = true;
 }