예제 #1
0
파일: Mappings.cs 프로젝트: formist/LinkMe
        public static NonMemberSettingEntity Map(this NonMemberSettings settings)
        {
            var entity = new NonMemberSettingEntity {
                id = settings.Id
            };

            settings.MapTo(entity);
            return(entity);
        }
예제 #2
0
파일: Mappings.cs 프로젝트: formist/LinkMe
 public static NonMemberSettings Map(this NonMemberSettingEntity entity)
 {
     return(new NonMemberSettings
     {
         Id = entity.id,
         EmailAddress = entity.emailAddress,
         SuppressSuggestedCandidatesEmails = ((NonMemberFlags)entity.flags).IsFlagSet(NonMemberFlags.SuppressSuggestedCandidatesEmails),
     });
 }
예제 #3
0
파일: Mappings.cs 프로젝트: formist/LinkMe
        public static void MapTo(this NonMemberSettings settings, NonMemberSettingEntity entity)
        {
            var flags = new NonMemberFlags();

            if (settings.SuppressSuggestedCandidatesEmails)
            {
                flags = flags.SetFlag(NonMemberFlags.SuppressSuggestedCandidatesEmails);
            }

            entity.emailAddress = settings.EmailAddress;
            entity.flags        = (byte)flags;
        }
예제 #4
0
 partial void DeleteNonMemberSettingEntity(NonMemberSettingEntity instance);
예제 #5
0
 partial void UpdateNonMemberSettingEntity(NonMemberSettingEntity instance);
예제 #6
0
 partial void InsertNonMemberSettingEntity(NonMemberSettingEntity instance);