50 lines
1.9 KiB
C#
50 lines
1.9 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 StockManMVC.Models
|
|
{
|
|
using System;
|
|
using System.Data.Entity;
|
|
using System.Data.Entity.Infrastructure;
|
|
using System.Data.Entity.Core.Objects;
|
|
using System.Linq;
|
|
|
|
public partial class StockManEntities : DbContext
|
|
{
|
|
public StockManEntities()
|
|
: base("name=StockManEntities")
|
|
{
|
|
}
|
|
|
|
protected override void OnModelCreating(DbModelBuilder modelBuilder)
|
|
{
|
|
throw new UnintentionalCodeFirstException();
|
|
}
|
|
|
|
public virtual DbSet<ItemFlux> ItemFlux { get; set; }
|
|
public virtual DbSet<ItemStock> ItemStock { get; set; }
|
|
public virtual DbSet<Location> Location { get; set; }
|
|
public virtual DbSet<LocType> LocType { get; set; }
|
|
public virtual DbSet<MovType> MovType { get; set; }
|
|
public virtual DbSet<ItemFamily> ItemFamily { get; set; }
|
|
public virtual DbSet<Item> Item { get; set; }
|
|
public virtual DbSet<ItemStockStatus> ItemStockStatus { get; set; }
|
|
public virtual DbSet<Operator> Operator { get; set; }
|
|
|
|
public virtual int stp_consolidateItem(Nullable<int> itemID)
|
|
{
|
|
var itemIDParameter = itemID.HasValue ?
|
|
new ObjectParameter("ItemID", itemID) :
|
|
new ObjectParameter("ItemID", typeof(int));
|
|
|
|
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("stp_consolidateItem", itemIDParameter);
|
|
}
|
|
}
|
|
}
|