#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Data;
using System.Linq;
using System.Linq.Expressions;
using System.Data.Common;
using System.Collections.Generic;
using Telerik.OpenAccess;
using ComboBoxDemo.Web;
using Telerik.OpenAccess.Metadata;


namespace ComboBoxDemo.Web	
{	
	public partial class AdresarEntityDiagrams : OpenAccessContext
	{
		private static string connectionStringName = "AdresarEntityDiagrams";
			
		private static BackendConfiguration backend = GetBackendConfiguration();
		
			
		private static MetadataSource metadataSource = AttributesMetadataSource.FromContext(typeof(AdresarEntityDiagrams));
	
		public AdresarEntityDiagrams()
			:base(connectionStringName, backend, metadataSource)
		{ }
		
		public AdresarEntityDiagrams(string connection)
			:base(connection, backend, metadataSource)
		{ }
	
		public AdresarEntityDiagrams(BackendConfiguration backendConfiguration)
			:base(connectionStringName, backendConfiguration, metadataSource)
		{ }
			
		public AdresarEntityDiagrams(string connection, MetadataSource metadataSource)
			:base(connection, backend, metadataSource)
		{ }
		
		public AdresarEntityDiagrams(string connection, BackendConfiguration backendConfiguration, MetadataSource metadataSource)
			:base(connection, backendConfiguration, metadataSource)
		{ }
			
		public IQueryable<Osoba> Osobas 
		{
	    	get
	    	{
	        	return this.GetAll<Osoba>();
	    	}
		}
		
		public IQueryable<Pohlavi> Pohlavis 
		{
	    	get
	    	{
	        	return this.GetAll<Pohlavi>();
	    	}
		}
		
		public static BackendConfiguration GetBackendConfiguration()
		{
			BackendConfiguration backend = new BackendConfiguration();
			backend.Backend = "mssql";
			return backend;
		}
	}
}
#pragma warning restore 1591