コード例 #1
0
 /// <summary>
 /// 创建新的 SysRoleFunction 对象。
 /// </summary>
 /// <param name="roleCode">RoleCode 属性的初始值。</param>
 /// <param name="functionCode">FunctionCode 属性的初始值。</param>
 /// <param name="queryFlag">QueryFlag 属性的初始值。</param>
 /// <param name="insertFlag">InsertFlag 属性的初始值。</param>
 /// <param name="updateFlag">UpdateFlag 属性的初始值。</param>
 /// <param name="deleteFlag">DeleteFlag 属性的初始值。</param>
 /// <param name="saveFlag">SaveFlag 属性的初始值。</param>
 /// <param name="printFlag">PrintFlag 属性的初始值。</param>
 /// <param name="importFlag">ImportFlag 属性的初始值。</param>
 /// <param name="exportFlag">ExportFlag 属性的初始值。</param>
 public static SysRoleFunction CreateSysRoleFunction(global::System.String roleCode, global::System.String functionCode, global::System.Boolean queryFlag, global::System.Boolean insertFlag, global::System.Boolean updateFlag, global::System.Boolean deleteFlag, global::System.Boolean saveFlag, global::System.Boolean printFlag, global::System.Boolean importFlag, global::System.Boolean exportFlag)
 {
     SysRoleFunction sysRoleFunction = new SysRoleFunction();
     sysRoleFunction.RoleCode = roleCode;
     sysRoleFunction.FunctionCode = functionCode;
     sysRoleFunction.QueryFlag = queryFlag;
     sysRoleFunction.InsertFlag = insertFlag;
     sysRoleFunction.UpdateFlag = updateFlag;
     sysRoleFunction.DeleteFlag = deleteFlag;
     sysRoleFunction.SaveFlag = saveFlag;
     sysRoleFunction.PrintFlag = printFlag;
     sysRoleFunction.ImportFlag = importFlag;
     sysRoleFunction.ExportFlag = exportFlag;
     return sysRoleFunction;
 }
コード例 #2
0
 /// <summary>
 /// 用于向 SysRoleFunction EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToSysRoleFunction(SysRoleFunction sysRoleFunction)
 {
     base.AddObject("SysRoleFunction", sysRoleFunction);
 }