Exemple #1
0
 public static DefinitionSettings Map(this CommunicationDefinitionSettingEntity entity)
 {
     return(new DefinitionSettings
     {
         DefinitionId = entity.definitionId,
         LastSentTime = entity.lastSentTime,
     });
 }
Exemple #2
0
        private static CommunicationDefinitionSettingEntity EnsureDefinitionSettingEntity(SettingsDataContext dc, CommunicationSettingEntity settings, Guid definitionId)
        {
            var definitionSettings = GetDefinitionSettingEntity(dc, settings.id, definitionId);

            if (definitionSettings == null)
            {
                definitionSettings = new CommunicationDefinitionSettingEntity {
                    id = Guid.NewGuid(), definitionId = definitionId, settingsId = settings.id
                };
                dc.CommunicationDefinitionSettingEntities.InsertOnSubmit(definitionSettings);
            }

            return(definitionSettings);
        }
Exemple #3
0
 private void detach_CommunicationDefinitionSettingEntities(CommunicationDefinitionSettingEntity entity)
 {
     this.SendPropertyChanging();
     entity.CommunicationSettingEntity = null;
 }
Exemple #4
0
 partial void DeleteCommunicationDefinitionSettingEntity(CommunicationDefinitionSettingEntity instance);
Exemple #5
0
 partial void InsertCommunicationDefinitionSettingEntity(CommunicationDefinitionSettingEntity instance);