Base solution for your next web application

Activities of "PekitP"

Hi, great!

To change entity table link column:

  1. Go to www root, view-resorces, areas, app, views, bundles, index file
  2. Serach for columndef
  3. Below change targets: X data: "field" to add render below
{
                    targets: 3,
                    data: "name",
                    render: function (data)
                    {
                        return '<a href="' + data + '">Länk</a>';
                    },
                },

Hi,

Seems like a problem with iis+core https://github.com/aspnet/AspNetCore.Docs/issues/6905

For a remedy I've activated "Application Initialization" on server, so we'll see how that turns out.

Best/Peter

Hi, stashed all my changes and started over and now it workes.

Should have done it sooner..

Best /Peter

Hi,
Here is the answer, core EF in most cases it doesn't like use of numbers, and favors references without them.
Rad tool works with multiple refs to same table when naming the navigation properties like "Wordone" and "Wordtwo" instead of "Word1" and "Word2". I guess it then sorts out the keys. Below is the generated working code: (Good to add to your to-do documentation for Rad tool)
public virtual int? Wordone { get; set; }
public Word Wordo { get; set; }
	
public virtual int? Wordtwo { get; set; }
public Word Wordt { get; set; }
Best/Peter

Hi,

Added foreignkeys explicit on both words, and it resolved the ref issue, but now throws a SQL error instead

	public virtual int? WordId { get; set; }

    [ForeignKey("WordId1")]
    public Word Word { get; set; }

    public virtual int? WordId2 { get; set; } 

    [ForeignKey("WordId2")]
    public Word Word2 { get; set; }
    

Exception thrown: 'System.Data.SqlClient.SqlException' in System.Private.CoreLib.dll

Showing 1 to 5 of 5 entries