Exemple #1
0
        /// <summary>
        /// Public constructor with required data
        /// </summary>
        /// <param name="role"></param>
        public User(global::Sandbox_EF6.Role role)
        {
            if (role == null)
            {
                throw new ArgumentNullException(nameof(role));
            }
            this.Role = role;

            Init();
        }
Exemple #2
0
 /// <summary>
 /// Static create function (for use in LINQ queries, etc.)
 /// </summary>
 /// <param name="role"></param>
 public static User Create(global::Sandbox_EF6.Role role)
 {
     return(new User(role));
 }