Files
MoonPro.net/MP-MON/Models/MapoModel.Context.cs
T
Samuele E. Locatelli 011daf120d Aggiunta progetto MP-MON
2016-11-11 15:43:34 +01:00

60 lines
2.3 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_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> 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<MappaStatoExpl> stp_MSE_getData(Nullable<int> maxAgeSec)
{
var maxAgeSecParameter = maxAgeSec.HasValue ?
new ObjectParameter("maxAgeSec", maxAgeSec) :
new ObjectParameter("maxAgeSec", typeof(int));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<MappaStatoExpl>("stp_MSE_getData", maxAgeSecParameter);
}
public virtual ObjectResult<MappaStatoExpl> stp_MSE_getData(Nullable<int> maxAgeSec, MergeOption mergeOption)
{
var maxAgeSecParameter = maxAgeSec.HasValue ?
new ObjectParameter("maxAgeSec", maxAgeSec) :
new ObjectParameter("maxAgeSec", typeof(int));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<MappaStatoExpl>("stp_MSE_getData", mergeOption, maxAgeSecParameter);
}
}
}