コード例 #1
0
        public async Task <AccountsNature> AddAccountsNatureAsync(AccountsNature accountsNature)
        {
            _uow.AccountsNatures.Add(accountsNature);
            await _uow.SaveChangesAsync().ConfigureAwait(false);

            return(accountsNature);
        }
コード例 #2
0
        public async Task <DL> AddDLAsync(DL dL)
        {
            _uow.DLs.Add(dL);
            await _uow.SaveChangesAsync().ConfigureAwait(false);

            return(dL);
        }
コード例 #3
0
        public async Task <AccountDocument> AddAccountDocumentAsync(AccountDocument accountDocument)
        {
            _uow.AccountDocuments.Add(accountDocument);
            await _uow.SaveChangesAsync().ConfigureAwait(false);

            return(accountDocument);
        }
コード例 #4
0
        public async Task <SLStandardDescription> AddSLStandardDescriptionAsync(SLStandardDescription sLStandardDescription)
        {
            _uow.SLStandardDescriptions.Add(sLStandardDescription);
            await _uow.SaveChangesAsync().ConfigureAwait(false);

            return(sLStandardDescription);
        }
コード例 #5
0
        public async Task <Style> AddStyleAsync(Style style)
        {
            _uow.Styles.Add(style);
            await _uow.SaveChangesAsync().ConfigureAwait(false);

            return(style);
        }
コード例 #6
0
        public async Task <GL> AddGLAsync(GL gL)
        {
            _uow.GLs.Add(gL);
            await _uow.SaveChangesAsync().ConfigureAwait(false);

            return(gL);
        }
コード例 #7
0
        public async Task <SL> AddSLAsync(SL sL)
        {
            _uow.SLs.Add(sL);
            await _uow.SaveChangesAsync().ConfigureAwait(false);

            return(sL);
        }
コード例 #8
0
        public async Task <FinancialYear> AddFinancialYearAsync(FinancialYear financialYear)
        {
            _uow.FinancialYears.Add(financialYear);
            await _uow.SaveChangesAsync().ConfigureAwait(false);

            return(financialYear);
        }
コード例 #9
0
        public async Task <RelatedPerson> AddRelatedPersonAsync(RelatedPerson relatedPerson)
        {
            _uow.RelatedPeople.Add(relatedPerson);
            await _uow.SaveChangesAsync().ConfigureAwait(false);

            return(relatedPerson);
        }
コード例 #10
0
        //public async Task<AccDocumentItem> AddAccDocumentItemAsync(AccDocumentItem accDocumentItem)
        //{
        //    _uow.AccDocumentItems.Add(accDocumentItem);
        //    var xxx=await _uow.SaveChangesAsync().ConfigureAwait(false);
        //    return accDocumentItem;
        //}
        public AccDocumentItem AddAccDocumentItemAsync(AccDocumentItem accDocumentItem)
        {
            _uow.AccDocumentItems.Add(accDocumentItem);
            var xxx = _uow.SaveChangesAsync();

            return(accDocumentItem);
        }
コード例 #11
0
        public async Task <Customer> AddCustomerAsync(Customer customer)
        {
            _context.Customers.Add(customer);
            await _context.SaveChangesAsync();

            return(customer);
        }
コード例 #12
0
        public async Task <DLAccountsNature> AddDLAccountsNatureAsync(DLAccountsNature dLAccountsNature)
        {
            _uow.DLAccountsNatures.Add(dLAccountsNature);
            await _uow.SaveChangesAsync().ConfigureAwait(false);

            return(dLAccountsNature);
        }
コード例 #13
0
        public async Task <AccDocumentHeader> UpdateAccDocumentHeaderAsync(AccDocumentHeader accDocumentHeader)
        {
            //    CultureInfo us = new CultureInfo("en-us");

            //    var cmd = $"EXEC AccDocumentHeader_Update @AccDocumentHeaderId = {accDocumentHeader.AccDocumentHeaderId}," +
            //$" @DocumentNumber = {accDocumentHeader.DocumentNumber}," +
            // $" @DailyNumber = {accDocumentHeader.DailyNumber}," +
            // $" @SystemFixNumber = {accDocumentHeader.SystemFixNumber}," +
            // $" @DocumentDate = '{accDocumentHeader.DocumentDate.ToString(us)}'," +
            // $" @SystemName = N'{accDocumentHeader.SystemName}'," +
            // $" @Exporter = N'{accDocumentHeader.Exporter}'," +
            // $" @Seconder = N'{accDocumentHeader.Seconder}'," +
            // $" @HeaderDescription = N'{accDocumentHeader.HeaderDescription}'," +
            // $" @ManualDocumentNumber = {accDocumentHeader.ManualDocumentNumber}," +
            // $" @BaseDocument = N'{accDocumentHeader.BaseDocument}'," +
            // $" @Seconder = N'{accDocumentHeader.Seconder}'," +
            // $" @TypeDocumentId = {accDocumentHeader.TypeDocumentId}," +
            // $" @DocumentHistory = N'{accDocumentHeader.DocumentHistory}'," +
            // $" @Attachment = N'{accDocumentHeader.Attachment}'," +
            // $" @Status = {Convert.ToInt16(accDocumentHeader.Status)}";
            //    await _uow.Database.ExecuteSqlCommandAsync(cmd).ConfigureAwait(false);
            _uow.Entry(accDocumentHeader).State = EntityState.Modified;
            await _uow.SaveChangesAsync().ConfigureAwait(false);

            return(accDocumentHeader);
        }
コード例 #14
0
        public async Task <Property> AddPropertyAsync(Property property)
        {
            _uow.Properties.Add(property);
            await _uow.SaveChangesAsync().ConfigureAwait(false);

            return(property);
        }
コード例 #15
0
        public async Task <Company> AddCompanyAsync(Company company)
        {
            _uow.Companies.Add(company);
            await _uow.SaveChangesAsync().ConfigureAwait(false);

            return(company);
        }
コード例 #16
0
        public async Task <BankAccount> AddBankAccountAsync(BankAccount bankAccount)
        {
            _uow.BankAccounts.Add(bankAccount);
            await _uow.SaveChangesAsync().ConfigureAwait(false);

            return(bankAccount);
        }
コード例 #17
0
        public async Task <TypeDocument> AddTypeDocumentAsync(TypeDocument typeDocument)
        {
            _uow.TypeDocuments.Add(typeDocument);
            await _uow.SaveChangesAsync().ConfigureAwait(false);

            return(typeDocument);
        }
コード例 #18
0
        public async Task <Bank> AddBankAsync(Bank bank)
        {
            _uow.Banks.Add(bank);
            await _uow.SaveChangesAsync().ConfigureAwait(false);

            return(bank);
        }
コード例 #19
0
        public async Task <DocumentNumbering> AddDocumentNumberingAsync(DocumentNumbering documentNumbering)
        {
            _uow.DocumentNumberings.Add(documentNumbering);
            await _uow.SaveChangesAsync().ConfigureAwait(false);

            return(documentNumbering);
        }
コード例 #20
0
        public async Task <Product> AddProductAsync(Product product)
        {
            _uow.Products.Add(product);
            await _uow.SaveChangesAsync().ConfigureAwait(false);

            return(product);
        }
コード例 #21
0
        public async Task <CountingWay> AddCountingWayAsync(CountingWay countingWay)
        {
            _uow.CountingWays.Add(countingWay);
            await _uow.SaveChangesAsync().ConfigureAwait(false);

            return(countingWay);
        }
コード例 #22
0
        public async Task <Currency> AddCurrencyAsync(Currency currency)
        {
            _uow.Currencies.Add(currency);
            await _uow.SaveChangesAsync().ConfigureAwait(false);

            return(currency);
        }
コード例 #23
0
        public async Task <TL> AddTLAsync(TL tL)
        {
            _uow.TLs.Add(tL);
            await _uow.SaveChangesAsync().ConfigureAwait(false);

            return(tL);
        }
コード例 #24
0
        public async Task <Stock> AddStockAsync(Stock stock)
        {
            _uow.Stocks.Add(stock);
            await _uow.SaveChangesAsync().ConfigureAwait(false);

            return(stock);
        }
コード例 #25
0
        public async Task <DLType> AddDLTypeAsync(DLType dLType)
        {
            _uow.DLTypes.Add(dLType);
            await _uow.SaveChangesAsync().ConfigureAwait(false);

            return(dLType);
        }
コード例 #26
0
        public async Task <SelectAgent> AddSelectAgentAsync(SelectAgent selectAgent)
        {
            _uow.SelectAgents.Add(selectAgent);
            await _uow.SaveChangesAsync().ConfigureAwait(false);

            return(selectAgent);
        }
コード例 #27
0
        public async Task <ExchangeRate> AddExchangeRateAsync(ExchangeRate exchangeRate)
        {
            _uow.ExchangeRates.Add(exchangeRate);
            await _uow.SaveChangesAsync().ConfigureAwait(false);

            return(exchangeRate);
        }
コード例 #28
0
        public async Task <TreeAccount> AddTreeAccountAsync(TreeAccount treeAccount)
        {
            _uow.TreeAccounts.Add(treeAccount);
            await _uow.SaveChangesAsync().ConfigureAwait(false);

            return(treeAccount);
        }
コード例 #29
0
        public async Task <BankType> AddBankTypeAsync(BankType bankType)
        {
            _uow.BankTypes.Add(bankType);
            await _uow.SaveChangesAsync().ConfigureAwait(false);

            return(bankType);
        }
コード例 #30
0
        public async Task <Person> AddPersonAsync(Person person)
        {
            _uow.People.Add(person);
            await _uow.SaveChangesAsync().ConfigureAwait(false);

            return(person);
        }