//------------------------------------------------------------------------------
//
// 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 MP.Models
{
using System;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Data.Entity.Core.Objects;
using System.Linq;
public partial class MoonProEntities : DbContext
{
public MoonProEntities()
: base("name=MoonProEntities")
{
}
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
throw new UnintentionalCodeFirstException();
}
public virtual DbSet AnagKeyValue { get; set; }
public virtual ObjectResult stp_AKV_getByKey(string nomeVar)
{
var nomeVarParameter = nomeVar != null ?
new ObjectParameter("nomeVar", nomeVar) :
new ObjectParameter("nomeVar", typeof(string));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("stp_AKV_getByKey", nomeVarParameter);
}
public virtual ObjectResult 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("stp_AKV_getByKey", mergeOption, nomeVarParameter);
}
}
}