51 lines
1.9 KiB
C#
51 lines
1.9 KiB
C#
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// Codice generato da un modello.
|
|
//
|
|
// Le modifiche manuali a questo file potrebbero causare un comportamento imprevisto dell'applicazione.
|
|
// Se il codice viene rigenerato, le modifiche manuali al file verranno sovrascritte.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace HOME.Models
|
|
{
|
|
using System;
|
|
using System.Data.Entity;
|
|
using System.Data.Entity.Infrastructure;
|
|
using System.Data.Entity.Core.Objects;
|
|
using System.Linq;
|
|
|
|
public partial class GPWEntities : DbContext
|
|
{
|
|
public GPWEntities()
|
|
: base("name=GPWEntities")
|
|
{
|
|
}
|
|
|
|
protected override void OnModelCreating(DbModelBuilder modelBuilder)
|
|
{
|
|
throw new UnintentionalCodeFirstException();
|
|
}
|
|
|
|
public virtual DbSet<AnagKeyValue> AnagKeyValue { get; set; }
|
|
|
|
public virtual ObjectResult<AnagKeyValue> stp_AKV_getByKey(string nomeVar)
|
|
{
|
|
var nomeVarParameter = nomeVar != null ?
|
|
new ObjectParameter("nomeVar", nomeVar) :
|
|
new ObjectParameter("nomeVar", typeof(string));
|
|
|
|
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<AnagKeyValue>("stp_AKV_getByKey", nomeVarParameter);
|
|
}
|
|
|
|
public virtual ObjectResult<AnagKeyValue> stp_AKV_getByKey(string nomeVar, MergeOption mergeOption)
|
|
{
|
|
var nomeVarParameter = nomeVar != null ?
|
|
new ObjectParameter("nomeVar", nomeVar) :
|
|
new ObjectParameter("nomeVar", typeof(string));
|
|
|
|
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<AnagKeyValue>("stp_AKV_getByKey", mergeOption, nomeVarParameter);
|
|
}
|
|
}
|
|
}
|