diff --git a/CreateModel.bat b/CreateModel.bat index 2f27853..27ceb4a 100644 --- a/CreateModel.bat +++ b/CreateModel.bat @@ -25,9 +25,9 @@ REM -------------- @echo 设置.net控制台环境 @echo. -@call "%VS100COMNTOOLS%"vsvars32.bat +@call "%VS150%" -SqlMetal /views /server:.\SQL2016 /database:HJGLDB_ZJBSF /code:%Model_ROOT%\Model.cs /namespace:Model +SqlMetal /views /server:. /database:HJGLDB_ZJBSF /code:%Model_ROOT%\Model.cs /namespace:Model @ECHO 完成 pause diff --git a/HJGL/.vs/HJGL/v17/.suo b/HJGL/.vs/HJGL/v17/.suo index 43128bb..e101903 100644 Binary files a/HJGL/.vs/HJGL/v17/.suo and b/HJGL/.vs/HJGL/v17/.suo differ diff --git a/HJGL/Model/Model.cs b/HJGL/Model/Model.cs index e404c2b..d329974 100644 --- a/HJGL/Model/Model.cs +++ b/HJGL/Model/Model.cs @@ -173,6 +173,12 @@ namespace Model partial void InsertPipeline_WeldJoint(Pipeline_WeldJoint instance); partial void UpdatePipeline_WeldJoint(Pipeline_WeldJoint instance); partial void DeletePipeline_WeldJoint(Pipeline_WeldJoint instance); + partial void InsertPMI_DetectionDetails(PMI_DetectionDetails instance); + partial void UpdatePMI_DetectionDetails(PMI_DetectionDetails instance); + partial void DeletePMI_DetectionDetails(PMI_DetectionDetails instance); + partial void InsertPMI_Detections(PMI_Detections instance); + partial void UpdatePMI_Detections(PMI_Detections instance); + partial void DeletePMI_Detections(PMI_Detections instance); partial void InsertProject_Installation(Project_Installation instance); partial void UpdateProject_Installation(Project_Installation instance); partial void DeleteProject_Installation(Project_Installation instance); @@ -664,6 +670,22 @@ namespace Model } } + public System.Data.Linq.Table PMI_DetectionDetails + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table PMI_Detections + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Project_Installation { get @@ -21129,6 +21151,418 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.PMI_DetectionDetails")] + public partial class PMI_DetectionDetails : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _Id; + + private string _PMIId; + + private string _JointId; + + private string _QualityNo; + + private string _Acceptance; + + private System.Nullable _CreatedTime; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnIdChanging(string value); + partial void OnIdChanged(); + partial void OnPMIIdChanging(string value); + partial void OnPMIIdChanged(); + partial void OnJointIdChanging(string value); + partial void OnJointIdChanged(); + partial void OnQualityNoChanging(string value); + partial void OnQualityNoChanged(); + partial void OnAcceptanceChanging(string value); + partial void OnAcceptanceChanged(); + partial void OnCreatedTimeChanging(System.Nullable value); + partial void OnCreatedTimeChanged(); + #endregion + + public PMI_DetectionDetails() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string Id + { + get + { + return this._Id; + } + set + { + if ((this._Id != value)) + { + this.OnIdChanging(value); + this.SendPropertyChanging(); + this._Id = value; + this.SendPropertyChanged("Id"); + this.OnIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PMIId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] + public string PMIId + { + get + { + return this._PMIId; + } + set + { + if ((this._PMIId != value)) + { + this.OnPMIIdChanging(value); + this.SendPropertyChanging(); + this._PMIId = value; + this.SendPropertyChanged("PMIId"); + this.OnPMIIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_JointId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] + public string JointId + { + get + { + return this._JointId; + } + set + { + if ((this._JointId != value)) + { + this.OnJointIdChanging(value); + this.SendPropertyChanging(); + this._JointId = value; + this.SendPropertyChanged("JointId"); + this.OnJointIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_QualityNo", DbType="NVarChar(255)")] + public string QualityNo + { + get + { + return this._QualityNo; + } + set + { + if ((this._QualityNo != value)) + { + this.OnQualityNoChanging(value); + this.SendPropertyChanging(); + this._QualityNo = value; + this.SendPropertyChanged("QualityNo"); + this.OnQualityNoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Acceptance", DbType="NVarChar(255)")] + public string Acceptance + { + get + { + return this._Acceptance; + } + set + { + if ((this._Acceptance != value)) + { + this.OnAcceptanceChanging(value); + this.SendPropertyChanging(); + this._Acceptance = value; + this.SendPropertyChanged("Acceptance"); + this.OnAcceptanceChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreatedTime", DbType="DateTime")] + public System.Nullable CreatedTime + { + get + { + return this._CreatedTime; + } + set + { + if ((this._CreatedTime != value)) + { + this.OnCreatedTimeChanging(value); + this.SendPropertyChanging(); + this._CreatedTime = value; + this.SendPropertyChanged("CreatedTime"); + this.OnCreatedTimeChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.PMI_Detections")] + public partial class PMI_Detections : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _Id; + + private string _DelegationNo; + + private System.Nullable _DelegationDate; + + private string _InstallationId; + + private string _UnitId; + + private string _DetectionStandard; + + private string _Remark; + + private System.Nullable _CreatedTime; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnIdChanging(string value); + partial void OnIdChanged(); + partial void OnDelegationNoChanging(string value); + partial void OnDelegationNoChanged(); + partial void OnDelegationDateChanging(System.Nullable value); + partial void OnDelegationDateChanged(); + partial void OnInstallationIdChanging(string value); + partial void OnInstallationIdChanged(); + partial void OnUnitIdChanging(string value); + partial void OnUnitIdChanged(); + partial void OnDetectionStandardChanging(string value); + partial void OnDetectionStandardChanged(); + partial void OnRemarkChanging(string value); + partial void OnRemarkChanged(); + partial void OnCreatedTimeChanging(System.Nullable value); + partial void OnCreatedTimeChanged(); + #endregion + + public PMI_Detections() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string Id + { + get + { + return this._Id; + } + set + { + if ((this._Id != value)) + { + this.OnIdChanging(value); + this.SendPropertyChanging(); + this._Id = value; + this.SendPropertyChanged("Id"); + this.OnIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DelegationNo", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] + public string DelegationNo + { + get + { + return this._DelegationNo; + } + set + { + if ((this._DelegationNo != value)) + { + this.OnDelegationNoChanging(value); + this.SendPropertyChanging(); + this._DelegationNo = value; + this.SendPropertyChanged("DelegationNo"); + this.OnDelegationNoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DelegationDate", DbType="DateTime")] + public System.Nullable DelegationDate + { + get + { + return this._DelegationDate; + } + set + { + if ((this._DelegationDate != value)) + { + this.OnDelegationDateChanging(value); + this.SendPropertyChanging(); + this._DelegationDate = value; + this.SendPropertyChanged("DelegationDate"); + this.OnDelegationDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationId", DbType="NVarChar(50)")] + public string InstallationId + { + get + { + return this._InstallationId; + } + set + { + if ((this._InstallationId != value)) + { + this.OnInstallationIdChanging(value); + this.SendPropertyChanging(); + this._InstallationId = value; + this.SendPropertyChanged("InstallationId"); + this.OnInstallationIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitId", DbType="NVarChar(50)")] + public string UnitId + { + get + { + return this._UnitId; + } + set + { + if ((this._UnitId != value)) + { + this.OnUnitIdChanging(value); + this.SendPropertyChanging(); + this._UnitId = value; + this.SendPropertyChanged("UnitId"); + this.OnUnitIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DetectionStandard", DbType="NVarChar(50)")] + public string DetectionStandard + { + get + { + return this._DetectionStandard; + } + set + { + if ((this._DetectionStandard != value)) + { + this.OnDetectionStandardChanging(value); + this.SendPropertyChanging(); + this._DetectionStandard = value; + this.SendPropertyChanged("DetectionStandard"); + this.OnDetectionStandardChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(255)")] + public string Remark + { + get + { + return this._Remark; + } + set + { + if ((this._Remark != value)) + { + this.OnRemarkChanging(value); + this.SendPropertyChanging(); + this._Remark = value; + this.SendPropertyChanged("Remark"); + this.OnRemarkChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreatedTime", DbType="DateTime")] + public System.Nullable CreatedTime + { + get + { + return this._CreatedTime; + } + set + { + if ((this._CreatedTime != value)) + { + this.OnCreatedTimeChanging(value); + this.SendPropertyChanging(); + this._CreatedTime = value; + this.SendPropertyChanged("CreatedTime"); + this.OnCreatedTimeChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Project_Installation")] public partial class Project_Installation : INotifyPropertyChanging, INotifyPropertyChanged { @@ -31057,7 +31491,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldJointCode", DbType="NVarChar(52)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldJointCode", DbType="NVarChar(51)")] public string WeldJointCode { get @@ -31696,7 +32130,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldJointCode", DbType="NVarChar(52)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldJointCode", DbType="NVarChar(51)")] public string WeldJointCode { get