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

            contact = contact1;
            return(ret);
        }
Exemple #5
0
 protected internal void OnEntityDeserializing(System.Runtime.Serialization.StreamingContext context)
 {
     this.IsDeserializing             = true;
     this._raisePropertyChangedEvents = true;
     this._id           = -1;
     this._line1        = default(string);
     this._line2        = default(string);
     this._city         = default(string);
     this._zip          = default(string);
     this._country      = default(string);
     this._contactId    = -1;
     this._contact      = null;
     this._googleMapUrl = default(string);
     this._liveMapUrl   = default(string);
     this._entityState  = CodeFluent.Runtime.CodeFluentEntityState.Created;
     this._raisePropertyChangedEvents = true;
 }