Base solution for your next web application

Activities of "vitor lacerda"

Hi,

How can i use Property Injection at InitialDataBuilder (DBMigration Seed)?

For example, how can i user Logger class?

public ILogger Logger { get; set; }

Thanks,

Vitor Lacerda

Hi Halil,

In My Project, a User belong to 1 or + OU (Organization Unit).

Entities like "Sales" implements "IMustHaveOU" interface.

public interface IMustHaveOU { public Guid OrgUnitId {get;set;}

[ForeingKey("OrgUnitId")] public OrgUnit OrgUnit {get;set;} }

I want to create a DynamicFilter to filter entity that implement this interface using OU's from Current User (AbpSession).

So, I extend "User" class

public class User : AbpUser<Tenant, User> { public virtual ICollection<OrgUnit> OrgUnits{ get; set; } //List of OU that user belongs

    public virtual ICollection OUIds{ get; set; } //List of OU Id's that user belongs
}

The question is?

How can i get User navigation from AbpSession?

How can i use AbpSession.User.OrgUnits (List) on Dynamic filter?

protected override void OnModelCreating(DbModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); modelBuilder.Filter("OuFilter", (IMustHaveOU entity) => AbpSession.User.OUList.Contains(entity.OrgUnitId), null);

or

modelBuilder.Filter("OuFilter", (IMustHaveOU entity,, List placeList) =>placeList.Contains(p.PlaceId), () => AbpSession.User.OUIds);

    }

Is this a good approach? this will create a "IN" clause on SQL?

Can i extend properties on AbpSession?

Can i use LINQ JOIN in DynamicFilter?

Thanks

Vitor Lacerda

thanks guys, I will follow the recommendation to keep in one app.

and will test the functionality of continuous integration just to know better.

Vitor

Hi,

Can anyone help me with this questions?

What is the best way to deploy Asp.Net Boilerplate + Zero project (SAAS) to Azure App Services and get better scalability system?

PS: My project can run on-promises too.

Of course, i will put database on SQL Database Azure service or on-promises Database.

Questions:

  1. Should i put all projects on same APP Service?

  2. Should i split projects between APP Service / API App?

If yes, What project shoud i put on App Service and API App?

Example: Web to App service , all others (Application, WebApi, Core, EntityFramework) to API App

  1. Anyone has a template project for Aspnetboilerplate+Zero with Azure integration?

  2. Anyone using Continuous Integration with VS Online?

Thanks.

Vitor Lacerda

Forget!

I checked the Log.txt and the error occurred because the MSDTC service was stopped.

Hi,

I generate a full template with module zero. I change web.config for database and run "update-migration".

Everything run ok. Database was created.

I try to run the application and when i put a user/password (admin / 123qwe) an internal error occurred.

"An internal error occurred durring your request!"

Do you know whats going on?

Thanks!

Thanks Halil.

I will check this sample!

I would also like to better understand the system modules.

Especially when this module contains domain entities, domain services, domain events, application services, navigations menus, views, etc ..

Hi Halil,

Can you explain the module system?

A module can contain 5 projects: Application, Core, EntityFramework, WebAPI and Web?

Imagine an application that contains a main module with entities, domain events, domain services, application services, web api, web, etc.

Now imagine that a new module is created, it will depend on the main module and will add entities, domain events, domain services, application services, web api, web, etc.

These modules will communicate using "DomainEvents"?

Should I use the embedded resource to store the frontend module views as html pages, chtml, css, js ?

You can share a simple implementation using the module system where each module can contain each of the projects like a main module?

Sorry my english.

Thank you for the great work.

My app is an Angularjs SPA and i use DTO but i need to update ViewModel like "sales order" with "sales order itens", "Customer" with "Address" (One to Many) and i need to know which Childs Objects ("Address" , "sales order itens") was added, modified, deleted and unchanged and sync with Entity (EntityState).

Showing 1 to 10 of 12 entries