//------------------------------------------------------------------------------
// <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 EF_2014
{
    using System;
    using System.Data.Entity;
    using System.Data.Entity.Infrastructure;
    using System.Data.Objects;
    using System.Data.Objects.DataClasses;
    using System.Linq;
    
    public partial class BazaDanychEntities : DbContext
    {
        public BazaDanychEntities()
            : base("name=BazaDanychEntities")
        {
        }
    
        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            throw new UnintentionalCodeFirstException();
        }
    
        public DbSet<Osoba> Osoba { get; set; }
        public DbSet<Rozmówcy> Rozmówcy { get; set; }
        public DbSet<OsobyPełnoletnie> OsobyPełnoletnie { get; set; }
    
        public virtual ObjectResult<OsobyStarszeNiż_Result> OsobyStarszeNiż(Nullable<int> param1)
        {
            var param1Parameter = param1.HasValue ?
                new ObjectParameter("param1", param1) :
                new ObjectParameter("param1", typeof(int));
    
            return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<OsobyStarszeNiż_Result>("OsobyStarszeNiż", param1Parameter);
        }
    }
}
