示例#1
0
        private static void TestEFOperationTypeService()
        {
            string connectionString = GetConnectionString("SULMAR-PC", "AdventureWorks", applicationName: "Santander");

            SantanderContext context = new SantanderContext(connectionString);

            IOperationTypeService operationTypeService = new EFOperationTypeService(context);

            OperationType operationType = operationTypeService.Get(1);
        }
示例#2
0
        private static void AddOperationTypeTest()
        {
            string connectionString = GetConnectionString("SULMAR-PC", "AdventureWorks", applicationName: "Santander");

            SantanderContext context = new SantanderContext(connectionString);

            IOperationTypeService operationTypeService = new EFOperationTypeService(context);

            OperationType operationType = new OperationType {
                Id = 4, Name = "Operacja 4"
            };

            operationTypeService.Add(operationType);
        }