using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Text; using System.Threading.Tasks; using Tango.Core; namespace Tango.TCC.BL.Entities { public class TCCContext : DbContext { private DataSource _dataSource; /// /// Initializes a new instance of the class. /// public TCCContext() { } /// /// Initializes a new instance of the class. /// /// The data source. public TCCContext(DataSource dataSource) : base(dataSource.ToConnection(), true) { _dataSource = dataSource; Database.SetInitializer(null); Configuration.LazyLoadingEnabled = false; } /// /// Gets or sets the devices. /// public DbSet Devices { get; set; } /// /// Gets or sets the results. /// public DbSet Results { get; set; } /// /// Gets or sets the results. /// public DbSet Cards { get; set; } } }