コード例 #1
0
 public dtoProfileAttributeType(ProfileAttributeType attribute, Boolean mandatory, UserTypeStandard userType) : this()
 {
     Attribute = attribute;
     Mandatory = mandatory;
     UserType  = userType;
     List <ProfileAttributeType> AlternativeAttributes = new List <ProfileAttributeType>();
 }
コード例 #2
0
 public dtoProfileAttributeType(ProfileAttributeType attribute, Boolean mandatory, UserTypeStandard userType, List <ProfileAttributeType> alternatives)
 {
     Attribute = attribute;
     Mandatory = mandatory;
     UserType  = userType;
     this.AlternativeAttributes = alternatives;
 }
コード例 #3
0
 public dtoProfileAttributeType(ProfileAttributeType attribute, UserTypeStandard userType)
 {
     Attribute = attribute;
     Mandatory = true;
     UserType  = userType;
     List <ProfileAttributeType> AlternativeAttributes = new List <ProfileAttributeType>();
 }
コード例 #4
0
        public Person GetDefaultUser(UserTypeStandard type)
        {
            Person person = null;

            try
            {
                person = (from p in Manager.GetIQ <Person>()
                          where p.TypeID == (int)type
                          select p).Skip(0).Take(1).FirstOrDefault();
            }
            catch (Exception ex)
            {
            }
            return(person);
        }