Beispiel #1
0
        public void BeforeScenario()
        {
            var dataDirectory         = ConfigurationManager.AppSettings["DataDirectory"];
            var absoluteDataDirectory = Path.GetFullPath(dataDirectory);

            AppDomain.CurrentDomain.SetData("DataDirectory", absoluteDataDirectory);
            context = new FunctionalDbContext();
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            using (var context = new FunctionalDbContext("name=default"))
            {
                Console.WriteLine(context.Database.Connection.ConnectionString);
                var recordCount = context.MyModels.Count();

                // Create a record if none currently exist
                if (recordCount == 0)
                {
                    context.MyModels.Add(new MyModel
                    {
                        Id   = 1,
                        Name = "A Model"
                    });
                    context.SaveChanges();
                }
            }

            Console.WriteLine("Press any key to continue...");
            Console.ReadLine();
        }
 public AdPriceRepository(FunctionalDbContext context)
 {
     _context = context;
 }
Beispiel #4
0
 public OrganizationRepository(FunctionalDbContext context)
 {
     _context = context;
 }
Beispiel #5
0
 public NotificationRepository(FunctionalDbContext context)
 {
     _context = context;
 }
 public ContactRepository(FunctionalDbContext context)
 {
     _context = context;
 }
Beispiel #7
0
 public CustomLinkRepository(FunctionalDbContext applicationDbContext)
 {
     FunctionalDbContext = applicationDbContext;
 }
Beispiel #8
0
 public FunctionalUnitOfWork(IServiceProvider serviceProvider, FunctionalDbContext applicationDbContext)
 {
     ApplicationDbContext = applicationDbContext;
     ServiceProvider      = serviceProvider;
 }
Beispiel #9
0
 public QrCodeRepository(FunctionalDbContext context)
 {
     _context = context;
 }
Beispiel #10
0
 public InvitationRepository(FunctionalDbContext context)
 {
     _context = context;
 }
Beispiel #11
0
 public SocialNetworkRepository(FunctionalDbContext applicationDbContext)
 {
     FunctionalDbContext = applicationDbContext;
 }
 public MessageRepository(FunctionalDbContext context)
 {
     _context = context;
 }
Beispiel #13
0
 public CardRepository(FunctionalDbContext applicationDbContext)
 {
     FunctionalDbContext = applicationDbContext;
 }
Beispiel #14
0
 public CountriesRepository(FunctionalDbContext context)
 {
     _context = context;
 }
 public PaymentRepository(FunctionalDbContext context)
 {
     _context = context;
 }
 public SubscriptionPackRepository(FunctionalDbContext applicationDbContext)
 {
     FunctionalDbContext = applicationDbContext;
 }
Beispiel #17
0
 public EventTrackingItemRepository(FunctionalDbContext context)
 {
     _context = context;
 }
Beispiel #18
0
 public TeamRepository(FunctionalDbContext context)
 {
     _context = context;
 }