/// <summary> /// Deprecated Method for adding a new object to the UserType EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToUserType(UserType userType) { base.AddObject("UserType", userType); }
/// <summary> /// Create a new UserType object. /// </summary> /// <param name="userTypeId">Initial value of the UserTypeId property.</param> /// <param name="name">Initial value of the Name property.</param> public static UserType CreateUserType(global::System.Int16 userTypeId, global::System.String name) { UserType userType = new UserType(); userType.UserTypeId = userTypeId; userType.Name = name; return userType; }