/// <summary> /// Deprecated Method for adding a new object to the Roles EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToRoles(Role role) { base.AddObject("Roles", role); }
/// <summary> /// Create a new Role object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="title">Initial value of the Title property.</param> /// <param name="accessAll">Initial value of the AccessAll property.</param> /// <param name="isDoctor">Initial value of the IsDoctor property.</param> /// <param name="accessDefineRole">Initial value of the AccessDefineRole property.</param> /// <param name="accessDefineEmployee">Initial value of the AccessDefineEmployee property.</param> /// <param name="accessDefineService">Initial value of the AccessDefineService property.</param> /// <param name="accessDefineCalendar">Initial value of the AccessDefineCalendar property.</param> /// <param name="accessDefineDrug">Initial value of the AccessDefineDrug property.</param> /// <param name="accessDefinePrescription">Initial value of the AccessDefinePrescription property.</param> /// <param name="accessDefineWarehouse">Initial value of the AccessDefineWarehouse property.</param> /// <param name="accessDefineStock">Initial value of the AccessDefineStock property.</param> /// <param name="accessDefineLabratory">Initial value of the AccessDefineLabratory property.</param> /// <param name="accessDefineLabratoryService">Initial value of the AccessDefineLabratoryService property.</param> public static Role CreateRole(global::System.Int32 id, global::System.String title, global::System.Boolean accessAll, global::System.Boolean isDoctor, global::System.Boolean accessDefineRole, global::System.Boolean accessDefineEmployee, global::System.Boolean accessDefineService, global::System.Boolean accessDefineCalendar, global::System.Boolean accessDefineDrug, global::System.Boolean accessDefinePrescription, global::System.Boolean accessDefineWarehouse, global::System.Boolean accessDefineStock, global::System.Boolean accessDefineLabratory, global::System.Boolean accessDefineLabratoryService) { Role role = new Role(); role.Id = id; role.Title = title; role.AccessAll = accessAll; role.IsDoctor = isDoctor; role.AccessDefineRole = accessDefineRole; role.AccessDefineEmployee = accessDefineEmployee; role.AccessDefineService = accessDefineService; role.AccessDefineCalendar = accessDefineCalendar; role.AccessDefineDrug = accessDefineDrug; role.AccessDefinePrescription = accessDefinePrescription; role.AccessDefineWarehouse = accessDefineWarehouse; role.AccessDefineStock = accessDefineStock; role.AccessDefineLabratory = accessDefineLabratory; role.AccessDefineLabratoryService = accessDefineLabratoryService; return role; }