Base solution for your next web application

Activities of "easyest"

Hey there,

My goal is to create a _Wcf_service for my IMyApplicationService. This is really easy - some annotations on IMyApplicationService, and Castle _WcfFactory_in Global.asax. The only problem - service implementation has _AbpAuthorize_attribute and service call fails. Is there any way to keep _AbpAuthorize_attributes, so that the same service implementation would be used for front-end clients and _Wcf_clients?

When executing migration

201602021344016_Added_BackgroundJobs_And_Notifications

there is a warning:

Warning! The maximum key length is 900 bytes. The index 'IX_NotificationName_EntityTypeName_EntityId_UserId' has maximum length of 1032 bytes. For some combination of large values, the insert/update operation will fail.

I am using SQL Server 2012.

Question

Dearh Halil,

Do You have intellisense working in Your ASP.NET Zero projects? What configuration should be done for intellisense to work? I know _references.js way, but as there is no such file in the solution, I understand there are another ways to enable intellisense for ASP.NET Zero solution. For the moment I see the only way to include all abp javascripts, app modules in _references.js and download angular intellisense integration nuget.

Question

In .sln file there is:

Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{BE80AEA7-9F1B-4B7A-A7A5-DB5BF75FCA2F}"
	ProjectSection(SolutionItems) = preProject
		WebEssentials2015-Settings.json = WebEssentials2015-Settings.json
	EndProjectSection
EndProject

But there is no such file in downloaded zip.

Question

Hi,

What is the correct way to update existing projects when new version comes out? While there are no real product I can still delete everything, download new template and start over, but what should I do when I will have a real product?

Following the example in documentation, lets say my Personentity has Statusproperty, that can be one of Active, _Expired_or Blocked. First thing that comes into my head is to put that to enum and use Displayattribute. But then I realize, that in Angular I do not use html helpers and even if I would, I have no idea, how to translate those display names. On the other hand, constant string usage in Asp.Net Zero for me seems better than enums, as this way makes my database values look much better. But then there is a question - should I translate those constants in application service? In angular view? Any other place? So, the question - what way would You suggest and how this status should be translated after all?

In ITenantAppService there are methods, that do not have return value:

Task CreateTenant(CreateTenantInput input);
        Task UpdateTenant(TenantEditDto input);

But in IOrganizationUnitAppService the same methods do have a return value:

Task<OrganizationUnitDto> CreateOrganizationUnit(CreateOrganizationUnitInput input);
        Task<OrganizationUnitDto> UpdateOrganizationUnit(UpdateOrganizationUnitInput input);

I do no see any difference in usage of those methods from angular. Could You explain, why they are different?

Question

Let's say in the application there will be lot's of drop-downs with values Yes/No, so I think it would be good to put such an object somewhere for angular's select to use. There are two ways I can do that - angular constants (using appModule.constant) and global javascript variables (in \Common\Scripts). Using first way, I will need to inject it to my controller, using the second one - no need for that. What would You suggest?

Currently every edit form in ASP.NET Zero is shown in a modal using $uibModal and is only one controller. Following this sample is really easy. But what if I would like to show "edit" form that would have two controllers and their views? For example 1 controller is a controller for shop entities and shows shop list. Second controller is a controller for item prices in that shop and shows item price list. This second controller is reused elsewhere, so should be separated from shop controller. My questions would be: How should I open view with multiple controllers and their views? How should I pass ID of the shop, that is selected in the first controller for the second controller to show correct price list?

And another situation - there is a list of shops, when clicked on an entry in this list another page with shop's edit form and a list of it's prices should be shown. How many controllers should there be and how navigation should be done, if price list and editing code is intended to be reused elsewhere?

Could You please point me to the right direction on how to add navigational properties to non-abstract entities, for example organization unit? If I would like to show the count of shops in this organization unit, it would be easiest to count it's ICollection<Shop> navigational property?

Showing 1 to 10 of 15 entries