//------------------------------------------------------------------------------
// <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 GymSystem
{
    using System;
    using System.Data.Entity;
    using System.Data.Entity.Infrastructure;
    using System.Data.Entity.Core.Objects;
    using System.Linq;
    
    public partial class DbGymEntities2 : DbContext
    {
        public DbGymEntities2()
            : base("name=DbGymEntities2")
        {
        }
    
        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            throw new UnintentionalCodeFirstException();
        }
    
        public virtual DbSet<TblForooshgah> TblForooshgahs { get; set; }
        public virtual DbSet<TblKomod> TblKomods { get; set; }
        public virtual DbSet<TblTarakonesh> TblTarakoneshes { get; set; }
        public virtual DbSet<TblUser> TblUsers { get; set; }
        public virtual DbSet<TblLogin> TblLogins { get; set; }
    
        public virtual int DoBackUp(string patch)
        {
            var patchParameter = patch != null ?
                new ObjectParameter("Patch", patch) :
                new ObjectParameter("Patch", typeof(string));
    
            return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("DoBackUp", patchParameter);
        }
    
        public virtual int DoBackUp1(string patch)
        {
            var patchParameter = patch != null ?
                new ObjectParameter("Patch", patch) :
                new ObjectParameter("Patch", typeof(string));
    
            return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("DoBackUp1", patchParameter);
        }
    }
}
