Ejemplo n.º 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Role EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToRole(Role role)
 {
     base.AddObject("Role", role);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Create a new Role object.
 /// </summary>
 /// <param name="roleID">Initial value of the RoleID property.</param>
 /// <param name="role1">Initial value of the Role1 property.</param>
 /// <param name="roleTypeID">Initial value of the RoleTypeID property.</param>
 public static Role CreateRole(global::System.Int32 roleID, global::System.String role1, global::System.Int32 roleTypeID)
 {
     Role role = new Role();
     role.RoleID = roleID;
     role.Role1 = role1;
     role.RoleTypeID = roleTypeID;
     return role;
 }