public static SettingsMoleculeEntity FromDomainObjectToEntity(SettingsMolecule source) { SettingsMoleculeEntity target = new SettingsMoleculeEntity(); target.Id = source.Id; target.OverrideAcceptable = source.OverrideAcceptable; target.OverrideOptimal = source.OverrideOptimal; target.SettingsAtom.Add(SettingsAtomAssembler.FromDomainObjectToEntity(source.PredefinedAtom)); target.SettingsAtom.Add(SettingsAtomAssembler.FromDomainObjectToEntity(source.StatisticalAtom)); target.AnalyticRuleSettingsEntityId = source.AnalyticRuleSettingsId; return(target); }
public static SettingsMolecule FromDtoToDomainObject(SettingsMoleculeDto source) { SettingsMolecule target = new SettingsMolecule(); target.Id = source.Id; target.OverrideAcceptable = source.OverrideAcceptable; target.OverrideOptimal = source.OverrideOptimal; target.PredefinedAtom = SettingsAtomAssembler.FromDtoToDomainObject(source.PredefinedAtom); target.StatisticalAtom = SettingsAtomAssembler.FromDtoToDomainObject(source.StatisticalAtom); target.AnalyticRuleSettingsId = source.AnalyticRuleSettingsId; return(target); }