Base solution for your next web application

Activities of "hitaspdotnet"

Hi. Why the client side code generator isn't modified by entity namespace for menu and childs position when using Rad tools? :( How to add new items to list?

<cite>alper: </cite> can you explain in details with showing some concrete samples.

I have a featured namespace named "Store" and they have some child namespace like "Catalog, Customers, Sales,..". So my entities like "Categories, Products, etc" should be in that main menu for progressing permissions and useful UI navigation. But all of my entities just can going to root menu or administration menu. So I need confirm my host permission and angular navigation per entity.

In code first approach we will first create entity classes with properties defined in it. ABP Entity framework will create the database and tables based on the entity classes defined. So database is generated from the code.

Advantages 1.You can create the database and tables from your business objects. 2.You can specify which related collections are to be eager loaded, or not be serialized at all. 3.You can use amazing Microsoft Entity Framework features in your entities 4.Database version control. 5.Good for small applications

Database First Approach Disadvantages

1.Using an existing database to generate a .edmx model file and the associated code models results in a giant pile of auto generated code. 2.When you need to add any functionality to generated model you have to extend the model class generated.

In the ABP framework everything is clean and easy so you can migrate from DB first to Code first easily. Use amazing ABP Zero RAD tools for generating your entities and enjoy.

I have just come up with an idea. Is it possible for any tenant to have a special domain name? For example a tenant with "{TenantName}.AppDomain.com" URL have "{TenantName}.com" based on host tenant.

My project is a eCommerce platform I want Users can build their own store with dedicated URL as feature edition. I think we need a special UI generator with API calling to {TenantName}.AppDomain.com but I'm not sure Any idea please? :roll:

EF core 2 not supporting many-to-many relations without fluent or join table right now. I read a article in APB documents that related to use Data layer for mapping and data filters. So if I had a module class library please give me the tips whats steps to create CustomModelBuilder for fluent API in MyModule? I'm student special thanks for any help with inline simple code. Regards

[quote="alper"][list] Thank you for helpful links Is there any suggestion about fluent models builder? I think the Fluent API provider and interface's can be a good feature for ABP Framework. I don't know! Maybe I'm wrong

Can I add a menu without permission required in the main menu? If yes whats my wrong?

CustomModuleNavigationProvider

public class CommerceServiceNavigationProvider : NavigationProvider
    {
        public override void SetNavigation(INavigationProviderContext context)
        {
            context.Manager.MainMenu
                .AddItem(
                    new MenuItemDefinition(
                        PageNames.Commerce,
                        L("HomePage"),
                        url: "App/Commerce",
                        icon: "fa fa-home"
                        )
                ).AddItem(
                    new MenuItemDefinition(
                        PageNames.About,
                        L("About"),
                        url: "App/About",
                        icon: "fa fa-info"
                        )
                );
        }

        private static ILocalizableString L(string name)
        {
            return new LocalizableString(name, CommerceServiceConsts.LocalizationSourceName);
        }
    }

CustomModuleWebModule

public class CommerceServiceWebModule : AbpModule
    {
        public override void PreInitialize()
        {
            Configuration.Navigation.Providers.Add<CommerceServiceNavigationProvider>();

            Configuration.EmbeddedResources.Sources.Add(
                new EmbeddedResourceSet(
                    "/Views/",
                    Assembly.GetExecutingAssembly(),
                    "CommerceService.Web.Views"
                    )
                );

            Configuration.Modules.AbpAspNetCore()
                .CreateControllersForAppServices(
                    Assembly.GetExecutingAssembly()
                );
        }

        public override void Initialize()
        {
            IocManager.RegisterAssemblyByConvention(typeof(CommerceServiceWebModule).GetAssembly());
        }
    }

Then I used [DependsOn(typeof(CommerceServiceWebModule)] attribute at MyAppWebCoreModule But nothing to show

<cite>alper: </cite> hi

maybe you should check this tutorial: <a class="postlink" href="https://www.tutorialspoint.com/entity_framework/entity_framework_fluent_api.htm">https://www.tutorialspoint.com/entity_f ... nt_api.htm</a>

and official Microsoft doc: <a class="postlink" href="https://msdn.microsoft.com/en-us/library/jj591617(v=vs.113">https://msdn.microsoft.com/en-us/librar ... 7(v=vs.113</a>).aspx

MSDN link is broken and first link tutorial is not covered by EF Core 2 because EF core 2 not generate join table. [https://github.com/aspnet/EntityFrameworkCore/issues/1368]) We need create that manually. Is can be hard for a project like eShop. Using fluent api in DbContext class's makes a ugly code if we have +10 tables. So what the best way?

[https://www.learnentityframeworkcore.com/configuration/fluent-api])

In version 2.0 onwards, this is accomplished by creating classes that implement IEntityTypeConfiguration<TEntity> and adding the fluent configuration code to a Configure method

Hi.

<cite>alper: </cite> Is it Angular or MVC?

It's MVC. Navigation source place's is my wrong? I created this using ABP documents. I asked a question

<cite>csbeginner: </cite> Can I add a menu without permission required in the main menu? If yes what's my wrong?

but after waiting for 7 hours and refreshing topic page's I resolved a link not YES or NO.

Showing 1 to 10 of 65 entries