Beispiel #1
0
        public void Seed(TestTriangleContext context)
        {
            context.Database.EnsureDeleted();
            context.Database.EnsureCreated();

            context.Employees.AddRange(
                new Employees()
            {
                FirstName = "CSHARP", LastName = "csharp", Addresss = "csharp", City = "csharp", Country = "csharp", HomePhone = "csharp"
            },
                new Employees()
            {
                FirstName = "VISUAL STUDIO", LastName = "visualstudio", Addresss = "csharp", City = "csharp", Country = "csharp", HomePhone = "csharp"
            }
                );

            context.SaveChanges();
        }
Beispiel #2
0
 public EmployeeRepository(TestTriangleContext repositoryContext)
     : base(repositoryContext)
 {
 }
Beispiel #3
0
 public RepositoryBase(TestTriangleContext repositoryContext)
 {
     this.RepositoryContext = repositoryContext;
 }
Beispiel #4
0
 public CountryRepository(TestTriangleContext repositoryContext)
     : base(repositoryContext)
 {
 }
 public RepositoryWrapper(TestTriangleContext repositoryContext)
 {
     _repoContext = repositoryContext;
 }
Beispiel #6
0
 public AccountRepository(TestTriangleContext repositoryContext)
     : base(repositoryContext)
 {
 }