Inheritance: System.Data.Objects.DataClasses.EntityObject
 /// <summary>
 /// Create a new RoleData object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="text">Initial value of the Text property.</param>
 public static RoleData CreateRoleData(global::System.Guid id, global::System.String text)
 {
     RoleData roleData = new RoleData();
     roleData.Id = id;
     roleData.Text = text;
     return roleData;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the RoleDatas EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToRoleDatas(RoleData roleData)
 {
     base.AddObject("RoleDatas", roleData);
 }
Example #3
0
 public static RoleDto ToDto(RoleData data)
 {
   return new RoleDto()
   {
     Id = data.Id,
     Text = data.Text
   };
 }