/// <summary> /// Create a new UserRoleEntity object. /// </summary> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="role">Initial value of the Role property.</param> public static UserRoleEntity CreateUserRoleEntity(global::System.Int64 userId, global::System.String role) { UserRoleEntity userRoleEntity = new UserRoleEntity(); userRoleEntity.UserId = userId; userRoleEntity.Role = role; return userRoleEntity; }
/// <summary> /// Deprecated Method for adding a new object to the UserRoles EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToUserRoles(UserRoleEntity userRoleEntity) { base.AddObject("UserRoles", userRoleEntity); }