Base solution for your next web application

Activities of "carlo.benitez"

Here you go RouteSchedule Route

Here is the Child entity:

namespace SprintTek.Shipping
{
    [Table("RouteSchedules")]
    public class RouteSchedule : Entity, IMayHaveTenant
    {
        public int? TenantId { get; set; }

        public virtual int DayOfWeek { get; set; }

        public virtual string AccountNumber { get; set; }

        public virtual int? RouteId { get; set; }

        [ForeignKey("RouteId")]
        public Route RouteFk { get; set; }

    }
}

Base Entity

namespace SprintTek.Shipping
{
    [Table("Routes")]
    public class Route : Entity, IMayHaveTenant
    {
        public int? TenantId { get; set; }

        public virtual string Code { get; set; }

    }
}
  • What is your product version? 11.2.1
  • What is your product type (Angular or MVC)? Angular
  • What is product framework type (.net framework or .net core)? .net core

Hi,

I was trying to follow the Power Tools guide in creating a master-details table and keep on encountering an issue where the generated masterDetailChild component does not match the number of arguments for the service proxy.

Error: src/app/main/shipping/routeSchedules/masterDetailChild_Route_routeSchedules.component.ts:108:14 - error TS2554: Expected 6 arguments, but got 5.

108             .getRouteSchedulesToExcel(
                 ~~~~~~~~~~~~~~~~~~~~~~~~~
109                 this.filterText,
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
113                 this.routeId
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
114             )
    ~~~~~~~~~~~~~

  src/shared/service-proxies/service-proxies.ts:10264:216
    10264     getRouteSchedulesToExcel(filter: string | undefined, maxDayOfWeekFilter: number | undefined, minDayOfWeekFilter: number | undefined, accountNumberFilter: string | undefined, routeCodeFilter: string | undefined, routeIdFilter: number | undefined): Observable<FileDto> {
                                                                                                                                                                                                                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    An argument for 'routeIdFilter' was not provided.




× Failed to compile.

For example, I would like to add a Component Template to the Rad tool that would display the list items in a different style/theme from the default (maybe a grid view) one for some of the Entities but still have the option to select default one for the other entities. I guess what I am saying is that is there a way to dynamically add component templates without just overriding the default one so that I could still select it for some screens?

Is there a way to add a dropdown in the Rad Tool Entity Generator Interface properties so that the user can select the style of the component to use for the user interface?

@ismcagdas

How do you add support for creation of Multilingual entities to the Rad Tool?

Is there a documentation for how the Template files are being used? The developer guide did not explain in detail how to customize or create the template files ("MainTemplate.txt", "PartialTemplates.txt" and "TemplateInfo.txt")

Yes, just need to add the dependency to the project and import. Thanks!

We need to add the EventSourceLogger to our app service. How do we do that in Program.cs file when there is no method AddEventSourceLogger when I tried to call ConfigureLogging? Here is the sample code from Microsoft docs

var webHost = new WebHostBuilder()
        .UseKestrel()
        .UseContentRoot(Directory.GetCurrentDirectory())
        .ConfigureAppConfiguration((hostingContext, config) =>
        {
            var env = hostingContext.HostingEnvironment;
            config.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true)
                  .AddJsonFile($"appsettings.{env.EnvironmentName}.json", 
                      optional: true, reloadOnChange: true);
            config.AddEnvironmentVariables();
        })
        .ConfigureLogging((hostingContext, logging) =>
        {
            // Requires `using Microsoft.Extensions.Logging;`
            logging.AddConfiguration(hostingContext.Configuration.GetSection("Logging"));
            logging.AddConsole();
            logging.AddDebug();
            logging.AddEventSourceLogger();
        })
        .UseStartup<Startup>()
        .Build();

Showing 1 to 9 of 9 entries