コード例 #1
0
 /// <summary>
 /// Create a new Role object.
 /// </summary>
 /// <param name="id">Initial value of Id.</param>
 public static Role CreateRole(long id)
 {
     Role role = new Role();
     role.Id = id;
     return role;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Roles EntitySet.
 /// </summary>
 public void AddToRoles(Role role)
 {
     base.AddObject("Roles", role);
 }