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

Activities of "gryphon644"

Hi, here is the JSON

{
  "IsRegenerate": true,
  "MenuPosition": "main",
  "RelativeNamespace": "PaymentProcessors",
  "EntityName": "PaymentProcessor",
  "EntityNamePlural": "PaymentProcessors",
  "TableName": "PaymentProcessors",
  "PrimaryKeyType": "int",
  "BaseClass": "FullAuditedEntity",
  "EntityHistory": true,
  "AutoMigration": true,
  "UpdateDatabase": true,
  "CreateUserInterface": true,
  "CreateViewOnly": true,
  "CreateExcelExport": true,
  "CreateExcelImport": true,
  "IsNonModalCRUDPage": false,
  "IsMasterDetailPage": false,
  "GenerateOverridableEntity": false,
  "GenerateUnitTest": true,
  "GenerateUiTest": false,
  "PagePermission": {
    "Host": false,
    "Tenant": true
  },
  "Properties": [
    {
      "Name": "Title",
      "Type": "string",
      "MaxLength": 30,
      "MinLength": 1,
      "Range": {
        "IsRangeSet": false,
        "MinimumValue": 0.0,
        "MaximumValue": 0.0
      },
      "Required": true,
      "Nullable": false,
      "Regex": "",
      "IsMultiLingual": false,
      "UserInterface": {
        "AdvancedFilter": true,
        "List": true,
        "CreateOrUpdate": true
      },
      "ViewType": null,
      "AdditionalData": {}
    },
    {
      "Name": "SecretKey",
      "Type": "string",
      "MaxLength": 50,
      "MinLength": 1,
      "Range": {
        "IsRangeSet": false,
        "MinimumValue": 0.0,
        "MaximumValue": 0.0
      },
      "Required": false,
      "Nullable": false,
      "Regex": "",
      "IsMultiLingual": false,
      "UserInterface": {
        "AdvancedFilter": false,
        "List": false,
        "CreateOrUpdate": true
      },
      "ViewType": null,
      "AdditionalData": {}
    },
    {
      "Name": "PublicKey",
      "Type": "string",
      "MaxLength": 50,
      "MinLength": 1,
      "Range": {
        "IsRangeSet": false,
        "MinimumValue": 0.0,
        "MaximumValue": 0.0
      },
      "Required": false,
      "Nullable": false,
      "Regex": "",
      "IsMultiLingual": false,
      "UserInterface": {
        "AdvancedFilter": false,
        "List": false,
        "CreateOrUpdate": true
      },
      "ViewType": null,
      "AdditionalData": {}
    },
    {
      "Name": "SigningSecret",
      "Type": "string",
      "MaxLength": 100,
      "MinLength": 1,
      "Range": {
        "IsRangeSet": false,
        "MinimumValue": 0.0,
        "MaximumValue": 0.0
      },
      "Required": false,
      "Nullable": false,
      "Regex": "",
      "IsMultiLingual": false,
      "UserInterface": {
        "AdvancedFilter": false,
        "List": false,
        "CreateOrUpdate": true
      },
      "ViewType": null,
      "AdditionalData": {}
    },
    {
      "Name": "DescriptorSuffix",
      "Type": "string",
      "MaxLength": 50,
      "MinLength": 1,
      "Range": {
        "IsRangeSet": false,
        "MinimumValue": 0.0,
        "MaximumValue": 0.0
      },
      "Required": false,
      "Nullable": false,
      "Regex": "",
      "IsMultiLingual": false,
      "UserInterface": {
        "AdvancedFilter": false,
        "List": false,
        "CreateOrUpdate": true
      },
      "ViewType": null,
      "AdditionalData": {}
    },
    {
      "Name": "SendProductName",
      "Type": "bool",
      "MaxLength": -1,
      "MinLength": -1,
      "Range": {
        "IsRangeSet": false,
        "MinimumValue": 0.0,
        "MaximumValue": 0.0
      },
      "Required": false,
      "Nullable": false,
      "Regex": "",
      "IsMultiLingual": false,
      "UserInterface": {
        "AdvancedFilter": false,
        "List": false,
        "CreateOrUpdate": true
      },
      "ViewType": null,
      "AdditionalData": {}
    },
    {
      "Name": "SendProductAsSuffix",
      "Type": "bool",
      "MaxLength": -1,
      "MinLength": -1,
      "Range": {
        "IsRangeSet": false,
        "MinimumValue": 0.0,
        "MaximumValue": 0.0
      },
      "Required": false,
      "Nullable": false,
      "Regex": "",
      "IsMultiLingual": false,
      "UserInterface": {
        "AdvancedFilter": false,
        "List": false,
        "CreateOrUpdate": true
      },
      "ViewType": null,
      "AdditionalData": {}
    },
    {
      "Name": "SendUpsellToken",
      "Type": "bool",
      "MaxLength": -1,
      "MinLength": -1,
      "Range": {
        "IsRangeSet": false,
        "MinimumValue": 0.0,
        "MaximumValue": 0.0
      },
      "Required": false,
      "Nullable": false,
      "Regex": "",
      "IsMultiLingual": false,
      "UserInterface": {
        "AdvancedFilter": false,
        "List": false,
        "CreateOrUpdate": true
      },
      "ViewType": null,
      "AdditionalData": {}
    },
    {
      "Name": "SendRadarSessions",
      "Type": "bool",
      "MaxLength": -1,
      "MinLength": -1,
      "Range": {
        "IsRangeSet": false,
        "MinimumValue": 0.0,
        "MaximumValue": 0.0
      },
      "Required": false,
      "Nullable": false,
      "Regex": "",
      "IsMultiLingual": false,
      "UserInterface": {
        "AdvancedFilter": false,
        "List": false,
        "CreateOrUpdate": true
      },
      "ViewType": null,
      "AdditionalData": {}
    },
    {
      "Name": "DisablePhone",
      "Type": "bool",
      "MaxLength": -1,
      "MinLength": -1,
      "Range": {
        "IsRangeSet": false,
        "MinimumValue": 0.0,
        "MaximumValue": 0.0
      },
      "Required": false,
      "Nullable": false,
      "Regex": "",
      "IsMultiLingual": false,
      "UserInterface": {
        "AdvancedFilter": false,
        "List": false,
        "CreateOrUpdate": true
      },
      "ViewType": null,
      "AdditionalData": {}
    },
    {
      "Name": "DisableEmail",
      "Type": "bool",
      "MaxLength": -1,
      "MinLength": -1,
      "Range": {
        "IsRangeSet": false,
        "MinimumValue": 0.0,
        "MaximumValue": 0.0
      },
      "Required": false,
      "Nullable": false,
      "Regex": "",
      "IsMultiLingual": false,
      "UserInterface": {
        "AdvancedFilter": false,
        "List": false,
        "CreateOrUpdate": true
      },
      "ViewType": null,
      "AdditionalData": {}
    },
    {
      "Name": "DisableEmailReceipt",
      "Type": "bool",
      "MaxLength": -1,
      "MinLength": -1,
      "Range": {
        "IsRangeSet": false,
        "MinimumValue": 0.0,
        "MaximumValue": 0.0
      },
      "Required": false,
      "Nullable": false,
      "Regex": "",
      "IsMultiLingual": false,
      "UserInterface": {
        "AdvancedFilter": false,
        "List": false,
        "CreateOrUpdate": true
      },
      "ViewType": null,
      "AdditionalData": {}
    },
    {
      "Name": "DoNotSendAddress",
      "Type": "bool",
      "MaxLength": -1,
      "MinLength": -1,
      "Range": {
        "IsRangeSet": false,
        "MinimumValue": 0.0,
        "MaximumValue": 0.0
      },
      "Required": false,
      "Nullable": false,
      "Regex": "",
      "IsMultiLingual": false,
      "UserInterface": {
        "AdvancedFilter": false,
        "List": false,
        "CreateOrUpdate": true
      },
      "ViewType": null,
      "AdditionalData": {}
    },
    {
      "Name": "ConnectedAccount",
      "Type": "bool",
      "MaxLength": -1,
      "MinLength": -1,
      "Range": {
        "IsRangeSet": false,
        "MinimumValue": 0.0,
        "MaximumValue": 0.0
      },
      "Required": false,
      "Nullable": false,
      "Regex": "",
      "IsMultiLingual": false,
      "UserInterface": {
        "AdvancedFilter": false,
        "List": false,
        "CreateOrUpdate": true
      },
      "ViewType": null,
      "AdditionalData": {}
    }
  ],
  "NavigationProperties": [],
  "NavigationPropertyOneToManyTables": [],
  "EnumDefinitions": [],
  "DbContext": null
}

I noticed the issue on a freshly installed PC with dotnet core 8 and 7 runtime installed.

is your database on azure?

Fixed it

It Worked!

Tried that and it did not work. Here is a quick loom https://www.loom.com/share/870a84250a1245d8a0640328916981cc?sid=15d1c9cf-3cbc-49ac-b976-429f9e0db0e6

It wouldn't work with Elsa 3.0 as a lot has changed on Elsa side.

Answer

I see now what happened! This implementation would only work with Elsa 2. The moment I upgraded the Elsa package I ran to the same issue.

Are you guys planning on updating the docs to Elsa 3 implementation?

Answer

Yeah thanks!

Answer

I followed this blog post but still can't resolve the issue. Added all these packages

Here is my error

Error CS1061 : 'IModule' does not contain a definition for 'UseEntityFrameworkCorePersistence' and no accessible extension method 'UseEntityFrameworkCorePersistence' accepting a first argument of type 'IModule' could be found (are you missing a using directive or an assembly reference?)

And here are my assembly references and implementation

using Elsa;
using Elsa.Server.Api;
using Elsa.Persistence.EntityFramework.SqlServer;
using Elsa.Persistence.EntityFramework.Core.Extensions;
using Microsoft.EntityFrameworkCore;
private void ConfigureElsa(IServiceCollection services)
		{
			services
				.AddElsa(elsa => elsa
					.UseEntityFrameworkCorePersistence(ef =>
						ef.UseSqlServer(_appConfiguration.GetConnectionString("Default")))
					.AddConsoleActivities()
					.AddHttpActivities(options => _appConfiguration.GetSection("Elsa:Server").Bind(options))
					.AddQuartzTemporalActivities()
					.AddJavaScriptActivities()
					.AddWorkflow<Startup>());



			// Elsa API endpoints.
			services.AddElsaApiEndpoints();
			services.Configure<ApiVersioningOptions>(options => { options.UseApiBehavior = false; });

			services.Configure<RouteOptions>(options => { options.LowercaseUrls = false; });

			// For Elsa Dashboard.
			services.AddRazorPages();

			// Remove ABP filter and add Elsa special filter
			services.PostConfigure<MvcOptions>(ReplaceResultFilter);
		}

Can I be sure that the implementation from the blog is not up to date? Does it still work for Elsa v3?

Answer

Nice! Thank you

Showing 1 to 10 of 22 entries