public virtual LicenseApplication.LicensePurposeMasterDataTable GetPurposeById(global::System.Nullable<global::System.Guid> PurposeId) { this.Adapter.SelectCommand = this.CommandCollection[2]; if ((PurposeId.HasValue == true)) { this.Adapter.SelectCommand.Parameters[1].Value = ((System.Guid)(PurposeId.Value)); } else { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; } LicenseApplication.LicensePurposeMasterDataTable dataTable = new LicenseApplication.LicensePurposeMasterDataTable(); this.Adapter.Fill(dataTable); return dataTable; }
public virtual LicenseApplication.LicensePurposeMasterDataTable GetLicensePurpose() { this.Adapter.SelectCommand = this.CommandCollection[1]; LicenseApplication.LicensePurposeMasterDataTable dataTable = new LicenseApplication.LicensePurposeMasterDataTable(); this.Adapter.Fill(dataTable); return dataTable; }