Exemple #1
0
        public static MemberProfileEntity Map(this MemberProfile profile, Guid memberId)
        {
            var entity = new MemberProfileEntity {
                memberId = memberId
            };

            profile.MapTo(entity);
            return(entity);
        }
Exemple #2
0
        public static MemberProfile Map(this MemberProfileEntity entity)
        {
            var profile = new MemberProfile
            {
                UpdateStatusReminder = { FirstShownTime = entity.updateProfileReminderTime, Hide = entity.hideUpdateProfileReminder },
            };

            entity.MapTo(profile);
            return(profile);
        }
Exemple #3
0
 partial void DeleteMemberProfileEntity(MemberProfileEntity instance);
Exemple #4
0
 partial void UpdateMemberProfileEntity(MemberProfileEntity instance);
Exemple #5
0
 partial void InsertMemberProfileEntity(MemberProfileEntity instance);
Exemple #6
0
 public static void MapTo(this MemberProfile profile, MemberProfileEntity entity)
 {
     entity.updateProfileReminderTime = profile.UpdateStatusReminder.FirstShownTime;
     entity.hideUpdateProfileReminder = profile.UpdateStatusReminder.Hide;
     ((UserProfile)profile).MapTo(entity);
 }