Base solution for your next web application

Activities of "cangunaydin"

Hello. With the ef core support, i created a custom repository and try to use it in one of the domain service. It is giving me a dependency error.

'ByteBrick.BookAndAd.Bookings.BookingManager' is waiting for the following dependencies:

  • Service 'ByteBrick.BookAndAd.Bookings.IBookedOfferRepository' which was not registered.

what can be the cause. Have any idea?

Hello i am trying to implement mysql db using devart dotconnect provider. Since Mysql native connector brings up lots of problems with eager load i wanted to switch to another connector. Normally in their documentation they are not using defaultconnectionfactory instead of that they are using DbProviderFactories you can find the getting started doc from here: <a class="postlink" href="http://blog.devart.com/entity-framework-6-support-for-oracle-mysql-postgresql-sqlite-and-salesforce.html">http://blog.devart.com/entity-framework ... force.html</a>

when i have changed my dbconfiguration class according to the post i am getting an error from .net core cli when i try to add a migration. It is saying "keyword not supported for 'port'". It seems like it is still trying to use ms sql connection factory. Do you have any idea what can be the cause of the problem or what am i doing wrong? Thank you.

here is my dbconfiguration class and configuration constructor.

public class BookAndAdDbConfiguration : DbConfiguration
    {
        public BookAndAdDbConfiguration()
        {
            //Mysql Implementation
            //SetProviderServices("MySql.Data.MySqlClient", new MySqlProviderServices());
            //SetDefaultConnectionFactory(new MySqlConnectionFactory());

            SetProviderServices("Devart.Data.MySql", Devart.Data.MySql.Entity.MySqlEntityProviderServices.Instance);
            SetProviderFactory("Devart.Data.MySql", Devart.Data.MySql.MySqlProviderFactory.Instance);
            //SetProviderServices(
            //    "System.Data.SqlClient",
            //    System.Data.Entity.SqlServer.SqlProviderServices.Instance
            //);
        }
    }
public Configuration()
        {
            //SetSqlGenerator("MySql.Data.MySqlClient", new MySql.Data.Entity.MySqlMigrationSqlGenerator());
            SetSqlGenerator(MySqlConnectionInfo.InvariantName, new Devart.Data.MySql.Entity.Migrations.MySqlEntityMigrationSqlGenerator());
            AutomaticMigrationsEnabled = false;
            ContextKey = "BookAndAd";
        }
Question

Hello, This question can be more related with jtable but since i am not super familiar with jtable i want to ask here first.

I want to intervene to the jtable event when it is clicked to the add new record button and open a custom modal that i have created. I have looked at the api reference of jtable and find out the formCreated event i can open the custom popup but it is also displaying the jquery ui dialog on the background. is there any way not to show the jquery ui modal? I am using master child tables so i want to create add new record button on the top of the child table, if i disable the create action then i can not implement my custom button over there. Any suggestion is appreciated. Thanks for the help.

Hello, I wonder if {tenancy_name} parameter can be used as subdomain of subdomain? i am trying it in the websiterootaddress of appsettings.json but i couldn't succeed. Is there any solution for it? and is it possible to have multiple websiterootaddress values? Cause in the future my application will use multiple domain names for the same ip address probably.

Hello i have deployed my application to a test server. Angular and .Net Core Projects are working fine. But when i open the login page from angular app it gives me access control origin error.

Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource

But when i call the same link from my web browser i am getting a response. My ui application runs from another port. What can i do to fix the problem. Any solution that you can suggest?

Hello, After i have deployed my asp.net core project i am getting an error on the swagger page. I didn't understand what does it mean or why am i getting it? Any idea about it?

{"schemaValidationMessages":[{"level":"error","domain":"validation","keyword":"oneOf","message":"instance failed to match exactly one schema (matched 0 out of 2)","schema":{"loadingURI":"http://swagger.io/v2/schema.json#","pointer":"/definitions/parametersList/items"},"instance":{"pointer":"/paths/~1api~1TokenAuth~1ImpersonatedAuthenticate/post/parameters/0"}}]}
Question

I wanted to implement sqlite with entityframework in core project. Is it possible to do that? as i do my research i think sqlite provider doesn't support code first is that true? or is there any workaround to fix the issue? i have found this library. But i couldn't manage to make it work. Any ideas about it?

[https://www.nuget.org/packages/SQLite.CodeFirst/])

Question

Hello i have just updated the angular-cli on my project following the steps on this link. <a class="postlink" href="https://github.com/angular/angular-cli">https://github.com/angular/angular-cli</a> Both in local package and global package. But when i try to use "npm start" now it gives me the error below. What did i do wrong? and how can i fix it?

Environment configuration does not contain "environmentSource" entry.

A new environmentSource entry replaces the previous source entry inside environments.

To migrate angular-cli.json follow the example below:

Before:

"environments": {
  "source": "environments/environment.ts",
  "dev": "environments/environment.ts",
  "prod": "environments/environment.prod.ts"
}


After:

"environmentSource": "environments/environment.ts",
"environments": {
  "dev": "environments/environment.ts",
  "prod": "environments/environment.prod.ts"
}

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
npm ERR! node v6.10.0
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `ng serve --host 0.0.0.0 --port 4200 --live-reload-port 4201`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'ng serve --host 0.0.0.0 --port 4200 --live-reload-port 4201'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the abp-zero-template package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     ng serve --host 0.0.0.0 --port 4200 --live-reload-port 4201
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs abp-zero-template
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls abp-zero-template
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     D:\dev\vs\dotnetcore\MagicInfoConfig\Server.UI\npm-debug.log
Question

I want to call jtable selectedRows method but as i see from the interface jtable is always returning void. When i change it to jquery no syntax error that i am getting but when i built it, it gives me

Property 'each' does not exist on type 'void'

here is my code to call jtable 'selectedRows' method

var $selectedRows = this._$screensTable.jtable('selectedRows');
        $selectedRows.each(function () {
            var record = $(this).data('record');
            var personId = record.PersonId;
            var name = record.Name;
        });

I have tried to implement the datepicker component to my project. I have tried to import the module in this link. <a class="postlink" href="https://valor-software.com/ng2-bootstrap/#/datepicker">https://valor-software.com/ng2-bootstrap/#/datepicker</a> I think this module is already in the project. I have tried to declare it like daterangepicker in app-common-module.ts

import * as ngCommon from '@angular/common';
import { NgModule, ModuleWithProviders } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { ModalModule } from 'ng2-bootstrap';

import { UtilsModule } from '@shared/utils/utils.module';
import { AbpModule } from '@abp/abp.module';
import { CommonModule } from '@shared/common/common.module';

import { TimeZoneComboComponent } from './timing/timezone-combo.component';
import { AppAuthService } from './auth/app-auth.service';
import { JqPluginDirective } from './libs/jq-plugin.directive';
import { CommonLookupModalComponent } from './lookup/common-lookup-modal.component';
import { DateRangePickerComponent } from './timing/date-range-picker.component';
import { DatepickerModule } from 'ng2-bootstrap/datepicker';
import { AppRouteGuard } from './auth/auth-route-guard';

@NgModule({
    imports: [
        DatepickerModule.forRoot(),
        ngCommon.CommonModule,
        FormsModule,
        ModalModule.forRoot(),
        UtilsModule,
        AbpModule,
        CommonModule
    ],
    declarations: [
        TimeZoneComboComponent,
        JqPluginDirective,
        CommonLookupModalComponent,
        DateRangePickerComponent
    ],
    exports: [
        TimeZoneComboComponent,
        JqPluginDirective,
        CommonLookupModalComponent,
        DateRangePickerComponent
    ]
})
export class AppCommonModule {
    static forRoot(): ModuleWithProviders {
        return {
            ngModule: AppCommonModule,
            providers: [
                AppAuthService,
                AppRouteGuard
            ]
        }
    }
}

But it seems sth. is wrong with the implementation. What will be the best way to implement the datepicker component?

Showing 31 to 40 of 50 entries