Exemplo n.º 1
0
 public static Adress CreateAddressFromImportGruppenliste(ImportGruppenliste importGruppenliste)
 {
     var address = new Adress
                       {
                           AddressLine1 = importGruppenliste.STRASSE,
                           City = importGruppenliste.ORT,
                           Postcode = importGruppenliste.PLZ,
                           MdaCountry = importGruppenliste.MdaCountry
                       };
     return address;
 }
        partial void CreateNewPersonWithRegistration_InitializeDataWorkspace(List<IDataService> saveChangesTo)
        {
            PersonProperty = new Person();

            AdressProperty = new Adress { IsDefault = true };
            PersonProperty.Adresses.Add(AdressProperty);

            RegistrationProperty = new Registration
                                       {
                                           NumberOfParticipations = 1,
                                           Occasion = FutureOccasions.First(x => x.IsCurrentOccasion)
                                       };
            PersonProperty.Registrations.Add(RegistrationProperty);
        }
Exemplo n.º 3
0
 partial void Adresses_Updating(Adress entity)
 {
     entity.ModifiedAt = DateTime.Now;
     entity.ModifiedBy = Application.User.FullName;
 }