问题描述
我想在Visual Studio中创建报告。
当打开“标准报表创建向导”时,该字段中的“允许为空”在我的班级中不会显示在菜单中,如图像[]
the field allow Nullable not display here
在不取消Nullable的情况下,如何使用字段允许报表中的Nullable ???
这是我的报告课
namespace PayRoll.database
{
using System;
using System.Collections.Generic;
public partial class tblEmployeeData
{
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage","CA2214:DoNotCallOverridableMethodsInConstructors")]
public tblEmployeeData()
{
this.Salary_Devation_For_Emp = new HashSet<Salary_Devation_For_Emp>();
this.tbl_Penalty_Emp = new HashSet<tbl_Penalty_Emp>();
this.tblBlackListForEmps = new HashSet<tblBlackListForEmp>();
this.tblContractForEmploees = new HashSet<tblContractForEmploee>();
this.tblCustodyForEmps = new HashSet<tblCustodyForEmp>();
this.tblOtherDataForEmps = new HashSet<tblOtherDataForEmp>();
this.Vacaition_For_Emp_ber_Day = new HashSet<Vacaition_For_Emp_ber_Day>();
this.Vacation_Details = new HashSet<Vacation_Details>();
this.Vacation_For_Emp_2020 = new HashSet<Vacation_For_Emp_2020>();
}
public int EmployeeCode { get; set; }
public string EmployeeName { get; set; }
public Nullable<byte> GenderCode { get; set; }
public Nullable<byte> PranchCode { get; set; }
public Nullable<byte> RelationShipCode { get; set; }
public Nullable<byte> AdministrationCode { get; set; }
public Nullable<byte> DepartmentCode { get; set; }
public Nullable<short>JopCode { get; set; }
public Nullable<byte> JopLevelCode { get; set; }
public Nullable<byte> ConCustmerCode { get; set; }
public Nullable<byte> Vacation_Calculate_Type_Code { get; set; }
public Nullable<byte> NationalityCode { get; set; }
public Nullable<byte> TypeOfWorkersCode { get; set; }
public Nullable<bool> IsActive { get; set; }
public Nullable<System.DateTime> Date_Hiring { get; set; }
public virtual Document_For_Employee Document_For_Employee { get; set; }
public virtual Financial_Statments Financial_Statments { get; set; }
public virtual Insurance_For_Emp Insurance_For_Emp { get; set; }
public virtual Salary_Data_For_Emp Salary_Data_For_Emp { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage","CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<Salary_Devation_For_Emp> Salary_Devation_For_Emp { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage","CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<tbl_Penalty_Emp> tbl_Penalty_Emp { get; set; }
public virtual tblAddressForEmp tblAddressForEmp { get; set; }
public virtual tblAdministration tblAdministration { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage","CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<tblBlackListForEmp> tblBlackListForEmps { get; set; }
public virtual tblConCustmor tblConCustmor { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage","CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<tblContractForEmploee> tblContractForEmploees { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage","CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<tblCustodyForEmp> tblCustodyForEmps { get; set; }
public virtual tblDepartment tblDepartment { get; set; }
public virtual tblDrivingLicenseForEmp tblDrivingLicenseForEmp { get; set; }
public virtual tblGender tblGender { get; set; }
public virtual tblJopLevel tblJopLevel { get; set; }
public virtual tblJop tblJop { get; set; }
public virtual tblNationality tblNationality { get; set; }
public virtual tblPranch tblPranch { get; set; }
public virtual tblRelationShip tblRelationShip { get; set; }
public virtual tblTypesOfWorker tblTypesOfWorker { get; set; }
public virtual Vacation_Calculate_Type Vacation_Calculate_Type { get; set; }
public virtual tblEmployeeQualification tblEmployeeQualification { get; set; }
public virtual tblHealthCertificateForEmp tblHealthCertificateForEmp { get; set; }
public virtual tblHealthInsuranceForEmp tblHealthInsuranceForEmp { get; set; }
public virtual tblMilitaryStateForEmp tblMilitaryStateForEmp { get; set; }
public virtual tblNationalIDforEmp tblNationalIDforEmp { get; set; }
public virtual tblOtherDataForEmp tblOtherDataForEmp { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage","CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<tblOtherDataForEmp> tblOtherDataForEmps { get; set; }
public virtual tblStuffHousingForEmp tblStuffHousingForEmp { get; set; }
public virtual tblWorkStubForEmp tblWorkStubForEmp { get; set; }
public virtual tbSkillLevelCertificateForEmp tbSkillLevelCertificateForEmp { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage","CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<Vacaition_For_Emp_ber_Day> Vacaition_For_Emp_ber_Day { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage","CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<Vacation_Details> Vacation_Details { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage","CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<Vacation_For_Emp_2020> Vacation_For_Emp_2020 { get; set; }
}
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)