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

Activities of "ryancyq"

Hi @martin, i believe you are refering to javascript proxies that generated by the framework automatically.

You need to add RemoteService to your MVC controller.

See https://aspnetboilerplate.com/Pages/Documents/AspNet-Core#client-proxies

Also, the document you provided was for aspnet mvc web api.

For aspnet core, see https://aspnetboilerplate.com/Pages/Documents/AspNet-Core#application-services-as-controllers

Hi,

you need to add your public ip address to the cors policy at https://github.com/aspnetzero/aspnet-zero-core/blob/e609cfa09116e7918975da28d8bcdaffe1d0c1c8/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Host/appsettings.json#L15

See more at https://docs.microsoft.com/en-us/aspnet/core/security/cors

are you using aspnet core jquery version?

did you run npm run create-bundle on Mvc project? The issue could be due to const.js not being bundled/minified when publishing.

see Run the project section

Can you try logging it down of how many times NewEntityCreatedAsync is called when new Document entity is created.

Your code might have been triggered multiple times thus publishing multiple times.

this mean that the 2 records are soft deleted. Hence by default repository will not retrieve soft deleted records.

see https://aspnetboilerplate.com/Pages/Documents/Data-Filters

TenantId is not a mandatory field. It is totally fine without it on an entity.

can you check if the 2 records have IsDeleted=true?

i think @aaron was refering to the 2 records in your database. Does the 2 records have TenantId = 1 as well?

Please share the code of notification publishing.

also, what is the trigger for your notification.

We have implemented Notification when any user add data in our custom table X. We have also set Entity Type in AppNotificationProvider.cs file as "typeof(X)

Hi, if possible, please share some code about the implementation of the scenario above

  1. For our case, these types of Notification can be called General or Entity based?

This depends if the nofitication is created with entity Id and type. if they do have entity Id and type then they are considered as entity base.

  1. For insert operation, EntityTypeName should be saved in "AbpNotificationSubsciptions" table or not?

it depends on your definition of notification. e.g user creation notification should have entity id and type, and weekly summary notification most likely doesn't need to have entity info

  1. For insert operation, EntityTypeName and EntityId should be saved in "AbpTenantNotifications" table or not?

Yes if you want the published user/tenant notification to have the context of a specific entity

Showing 301 to 310 of 573 entries