//------------------------------------------------------------------------------ // // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated. // //------------------------------------------------------------------------------ namespace Neo.LegitimateLicences.LicenceCancelRequest.Models.Database { using System; using System.Data.Entity; using System.Data.Entity.Infrastructure; using System.Data.Entity.Core.Objects; using System.Linq; public partial class LicenceCancelContext : DbContext { public LicenceCancelContext() : base("name=LicenceCancelContext") { } protected override void OnModelCreating(DbModelBuilder modelBuilder) { throw new UnintentionalCodeFirstException(); } public virtual DbSet LicenceCancelDetails { get; set; } public virtual DbSet Licences { get; set; } public virtual DbSet LicenceStatus { get; set; } public virtual DbSet Vw_LicenceCancelDetails { get; set; } public virtual ObjectResult Pr_LicenceCancelRequestCreate(Nullable verifiedLicenceID, Nullable userID) { var verifiedLicenceIDParameter = verifiedLicenceID.HasValue ? new ObjectParameter("VerifiedLicenceID", verifiedLicenceID) : new ObjectParameter("VerifiedLicenceID", typeof(long)); var userIDParameter = userID.HasValue ? new ObjectParameter("UserID", userID) : new ObjectParameter("UserID", typeof(long)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("Pr_LicenceCancelRequestCreate", verifiedLicenceIDParameter, userIDParameter); } public virtual ObjectResult Pr_LicenceCancelRequestCreate(Nullable verifiedLicenceID, Nullable userID, MergeOption mergeOption) { var verifiedLicenceIDParameter = verifiedLicenceID.HasValue ? new ObjectParameter("VerifiedLicenceID", verifiedLicenceID) : new ObjectParameter("VerifiedLicenceID", typeof(long)); var userIDParameter = userID.HasValue ? new ObjectParameter("UserID", userID) : new ObjectParameter("UserID", typeof(long)); return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("Pr_LicenceCancelRequestCreate", mergeOption, verifiedLicenceIDParameter, userIDParameter); } } }