Files
MoonPro.net/MP/Models/MPModel.Context.cs
T
2017-04-14 13:54:37 +02:00

49 lines
1.8 KiB
C#

//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
namespace MP.Models
{
using System.Data.Entity;
using System.Data.Entity.Core.Objects;
using System.Data.Entity.Infrastructure;
public partial class MoonProEntities : DbContext
{
public MoonProEntities()
: base("name=MoonProEntities")
{
}
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);
}
}
}