//------------------------------------------------------------------------------
//
// 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_MON.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 MappaStatoExpl { get; set; }
public virtual int stp_MSE_refresh(string idxMacchina)
{
var idxMacchinaParameter = idxMacchina != null ?
new ObjectParameter("IdxMacchina", idxMacchina) :
new ObjectParameter("IdxMacchina", typeof(string));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("stp_MSE_refresh", idxMacchinaParameter);
}
public virtual ObjectResult stp_MSE_getData(Nullable maxAgeSec)
{
var maxAgeSecParameter = maxAgeSec.HasValue ?
new ObjectParameter("maxAgeSec", maxAgeSec) :
new ObjectParameter("maxAgeSec", typeof(int));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("stp_MSE_getData", maxAgeSecParameter);
}
public virtual ObjectResult stp_MSE_getData(Nullable maxAgeSec, MergeOption mergeOption)
{
var maxAgeSecParameter = maxAgeSec.HasValue ?
new ObjectParameter("maxAgeSec", maxAgeSec) :
new ObjectParameter("maxAgeSec", typeof(int));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("stp_MSE_getData", mergeOption, maxAgeSecParameter);
}
public virtual ObjectResult stp_MSE_getOffline(Nullable keepAliveMin)
{
var keepAliveMinParameter = keepAliveMin.HasValue ?
new ObjectParameter("keepAliveMin", keepAliveMin) :
new ObjectParameter("keepAliveMin", typeof(int));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("stp_MSE_getOffline", keepAliveMinParameter);
}
public virtual ObjectResult stp_MSE_getOffline(Nullable keepAliveMin, MergeOption mergeOption)
{
var keepAliveMinParameter = keepAliveMin.HasValue ?
new ObjectParameter("keepAliveMin", keepAliveMin) :
new ObjectParameter("keepAliveMin", typeof(int));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("stp_MSE_getOffline", mergeOption, keepAliveMinParameter);
}
}
}