Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "geoteam"

Hi, we have the same problem. Upgraded to Aspnet Zero V11 and would like to download the Metronic V8. Thanks.

Hi ismcagdas, ok thank you very much. I will do this the next time I upgrade AspNet Zero. Best regards Frank

Hi ismcagdas, thank you very much, it worked.

One last question. I now have the "new project" structure. At the end of the section in the documentation it says that the aspnetzero branch should now always be overwritten only with the current AspNet Zero version. In the last post you recommend to delete the files in the aspnetzero branch before updating. What is the best way? Many greetings Frank

Hi ismcagdas, how and where is the content deleted from the migrate branch? Delete the entire content of the project directory in the file system while Visual Studio is open and the migrate branch is active?

I think my mistake was that the existing project was already connected to git and I copied the .git folder and everything else into the migrate branch.

Now I did the following:

  • created master branch from a new aspnet zero project with the correct version
  • created aspnetzero and migrate branch from the dev branch
  • set migrate branch to active in Visual Studio
  • copy the entire project directory in file system (except the .git folder) of the existing code from a backup to the current project directory while Visual Studio is open and the migrate branch is active.
  • merge migrate to dev branch
  • created a new project with the current ASPnet zero version and made it executable.
  • activate the aspnetzero branch
  • copy the complete project directory of the new AspNet Zero project in the file system to the current project directory while Visual Studio is open and the aspnetzero branch is active.
  • merge aspnetzero into dev and fix the error.

Is this way correct? At the moment everything looks fine, but I'm wondering if this might cause a lot of unused files from old versions to be in the project over time.

I know it's a lot of repetition from the documentation, but it's a big and important step to do the upgrade to new and future versions correctly.

Thanks and best regards Frank

Hello ismcagdas , can you please explain the first option a little more precisely? I have already worked with a custom repository (as described here https://aspnetboilerplate.com/Pages/Documents/Articles/Using-Stored-Procedures,-User-Defined-Functions-and-Views/index.html), but the problem exists here as well. The custom repository is always bound to a specific entity. In the example to User. Can I create a custom repository that is not bound to a specific entity?

I want to modify this function so that the corresponding database table is queried using the input.tablename.

public async Task<PagedResultDto<TitleDto>> GetTitlesForDatatable(GetTitlesInput input)
        {
            var tableName = input.TableName;

            //Decide based on TableName - do sql-statement 
            var query = _titleRepository.GetAll();

            var itemCount = await query.CountAsync();

            var titles = query
                .OrderBy(input.Sorting)
                .PageBy(input)
                .ToList();

            var titleListDto = ObjectMapper.Map<List<TitleDto>>(titles);

            return new PagedResultDto<TitleDto>(
                itemCount,
                titleListDto
                );
        }

Hi ismcagdas, thank you for giving me the right lead. With the log it was no problem to fix the error. The name of the directory was not the same as the name of the view component. Therefore the default.cshtml was not found. Many greetings geoteam

Hi ismcagdas, I think my problem was the fulltextsearch in database. The magic words are "changes might not be reflected immediately in the full-text index.". So database was updated but when "dataTable.ajax.reload();" was executed the fulltextindex was not refreshed. Thanks for your time.

Hi ismcagdas, thanks for reply. Searchtext is used for test purposes and the value "Spieth" is written "hard" into database. It's read from modal form text field and is not changed. In real application searchtext should be written by a stored procedure. The only special thing about the Searchtext column in the database is that it is a full text indexed column.

var dataTable = _$addressSearchTable.DataTable({
            paging: true,
            serverSide: true,
            processing: true,
            listAction: {
                ajaxFunction: _addressService.getAddressPersonCompaniesForDatatable,
                inputFilter: function () {
                    return {
                        filter: $('#FilterAddressText').val()//,
                        //permissions: _selectedPermissionNames,
                        //role: $("#RoleSelectionCombo").val(),
                        //onlyLockedUsers: $("#UsersTable_OnlyLockedUsers").is(':checked')
                    };
                }
            },

Because of a test with a breakpoint I'm writting about a time problem. When I place a breakpoint at the end of "CreateOrUpdateAddress" nothing is written in database. After one step more (F10) out of the function debugger stops at function "public class AppnameEntityFrameworkCoreModule : AbpModule" at line "Configuration.Modules.AbpEfCore().AddDbContext<AppnameDbContext>(options =>" and data is written in database. After that done-function and dataTable.ajax.reload() is called. In this case the new address is displayed in the datatable as expected.

But when I run the insert dialog without breakpoint, the new address isn't shown in the datatable. Only after a refresh.

Similar behavior with update dialog. I can see because of the updated data in the datatable, that address and name data is written in database, but the updated searchtext is written to late, so that for example changed name from "Spieth" to "Test", search still finds the row with searchtext "Spieth" and not the updated row with "Test".

Can you give me a hint, where to do

addressPersonCompany.NormalizedSearchTarget = String
    .Join(" ", e.PersonCompany.NameCompany, e.PersonCompany.Firstname, e.Address.Street, e.Address.Location)
    .ToUpperInvariant();

Thanks for reply. Without including Abp.Linq.Expressions namespace, it is Abp.Collections.Extensions.WhereIf(). I will test your suggestion next week.

Showing 1 to 10 of 12 entries