/// <summary>
        /// Получить все объекты.
        /// </summary>
        /// <returns>Объекты.</returns>
        public List <Core.BusinessTrip.Domain.BusinessTrip> GetAll()
        {
            BusinessTripContext businessTripContext = new BusinessTripContext(ConnectionString);

            //var ff = businessTripContext.Set<Core.BusinessTrip.Domain.BusinessTrip>().ToList();
            //businessTripContext.Database.Log = (s => System.Diagnostics.Debug.WriteLine(s));
            businessTripContext.Database.Log = (s => System.Diagnostics.Debug.WriteLine(s));
            return(businessTripContext.Set <Core.BusinessTrip.Domain.BusinessTrip>().ToList());
        }
Exemplo n.º 2
0
        /// <summary>
        /// Получить все объекты.
        /// </summary>
        /// <returns>Объекты.</returns>
        public List <Core.BusinessTrip.Domain.BusinessTrip> GetAll()
        {
            BusinessTripContext businessTripContext = new BusinessTripContext();

            return(businessTripContext.Set <Core.BusinessTrip.Domain.BusinessTrip>().ToList());
        }
Exemplo n.º 3
0
        /// <summary>
        /// Получить все объекты.
        /// </summary>
        /// <returns>Объекты.</returns>
        public List <Party> GetAll()
        {
            BusinessTripContext businessTripContext = new BusinessTripContext();

            return(businessTripContext.Set <Party>().ToList());
        }
Exemplo n.º 4
0
        /// <summary>
        /// Получить все объекты.
        /// </summary>
        /// <returns>Объекты.</returns>
        public List <TEntity> GetAll()
        {
            BusinessTripContext businessTripContext = new BusinessTripContext(ConnectionString);

            return(businessTripContext.Set <TEntity>().ToList());
        }