Пример #1
0
 /// <summary>
 /// Create a new UserView object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="email">Initial value of the Email property.</param>
 /// <param name="password">Initial value of the Password property.</param>
 /// <param name="bRole">Initial value of the BRole property.</param>
 /// <param name="sRole">Initial value of the SRole property.</param>
 public static UserView CreateUserView(global::System.Int32 id, global::System.String name, global::System.String email, global::System.String password, global::System.String bRole, global::System.String sRole)
 {
     UserView userView = new UserView();
     userView.Id = id;
     userView.Name = name;
     userView.Email = email;
     userView.Password = password;
     userView.BRole = bRole;
     userView.SRole = sRole;
     return userView;
 }
Пример #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the UserViews EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToUserViews(UserView userView)
 {
     base.AddObject("UserViews", userView);
 }