JSON dynamic menu in ASP.NET Core 2.1 Razor Page with Web Api
up vote
0
down vote
favorite
Is this a correct JSON string I get? I add a MenuList JSON column into the Menusss table, I'm trying to use the Pomelo.EntityFrameworkCore.MySql to create a dynamic side menu in ASP.NET Core 2.1
The problem is here, if my Menusss table didn't add the MenuList JSON, it will show me an error code "Unknown Column", but when I add a MenuList JSON into Menusss table, I get a difference JSON string here.
MySql:
CREATE TABLE Menusss(
MenuId INT NOT NULL AUTO_INCREMENT,
MenuName VARCHAR(250),
ParentId INT,
ActiveNo BOOL,
MenuList JSON
);
JSON:
[
{
"menuId": 1,
"menuName": "VEHICLE TRADING",
"parentId": null,
"activeNo": 1,
"menuList": {
"object": [
{
"menuId": 2,
"menuName": "Purchase Agreement",
"parentId": 1,
"activeNo": 1,
"menuList": {
"object": ,
"json": ""
}
}
],
"json": "[{"MenuId":2,"MenuName":"Purchase Agreement","ParentId":1,"ActiveNo":1,"MenuList":{"Object":,"Json":""}}]"
}
}
]
jquery mysql asp.net json asp.net-core
add a comment |
up vote
0
down vote
favorite
Is this a correct JSON string I get? I add a MenuList JSON column into the Menusss table, I'm trying to use the Pomelo.EntityFrameworkCore.MySql to create a dynamic side menu in ASP.NET Core 2.1
The problem is here, if my Menusss table didn't add the MenuList JSON, it will show me an error code "Unknown Column", but when I add a MenuList JSON into Menusss table, I get a difference JSON string here.
MySql:
CREATE TABLE Menusss(
MenuId INT NOT NULL AUTO_INCREMENT,
MenuName VARCHAR(250),
ParentId INT,
ActiveNo BOOL,
MenuList JSON
);
JSON:
[
{
"menuId": 1,
"menuName": "VEHICLE TRADING",
"parentId": null,
"activeNo": 1,
"menuList": {
"object": [
{
"menuId": 2,
"menuName": "Purchase Agreement",
"parentId": 1,
"activeNo": 1,
"menuList": {
"object": ,
"json": ""
}
}
],
"json": "[{"MenuId":2,"MenuName":"Purchase Agreement","ParentId":1,"ActiveNo":1,"MenuList":{"Object":,"Json":""}}]"
}
}
]
jquery mysql asp.net json asp.net-core
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Is this a correct JSON string I get? I add a MenuList JSON column into the Menusss table, I'm trying to use the Pomelo.EntityFrameworkCore.MySql to create a dynamic side menu in ASP.NET Core 2.1
The problem is here, if my Menusss table didn't add the MenuList JSON, it will show me an error code "Unknown Column", but when I add a MenuList JSON into Menusss table, I get a difference JSON string here.
MySql:
CREATE TABLE Menusss(
MenuId INT NOT NULL AUTO_INCREMENT,
MenuName VARCHAR(250),
ParentId INT,
ActiveNo BOOL,
MenuList JSON
);
JSON:
[
{
"menuId": 1,
"menuName": "VEHICLE TRADING",
"parentId": null,
"activeNo": 1,
"menuList": {
"object": [
{
"menuId": 2,
"menuName": "Purchase Agreement",
"parentId": 1,
"activeNo": 1,
"menuList": {
"object": ,
"json": ""
}
}
],
"json": "[{"MenuId":2,"MenuName":"Purchase Agreement","ParentId":1,"ActiveNo":1,"MenuList":{"Object":,"Json":""}}]"
}
}
]
jquery mysql asp.net json asp.net-core
Is this a correct JSON string I get? I add a MenuList JSON column into the Menusss table, I'm trying to use the Pomelo.EntityFrameworkCore.MySql to create a dynamic side menu in ASP.NET Core 2.1
The problem is here, if my Menusss table didn't add the MenuList JSON, it will show me an error code "Unknown Column", but when I add a MenuList JSON into Menusss table, I get a difference JSON string here.
MySql:
CREATE TABLE Menusss(
MenuId INT NOT NULL AUTO_INCREMENT,
MenuName VARCHAR(250),
ParentId INT,
ActiveNo BOOL,
MenuList JSON
);
JSON:
[
{
"menuId": 1,
"menuName": "VEHICLE TRADING",
"parentId": null,
"activeNo": 1,
"menuList": {
"object": [
{
"menuId": 2,
"menuName": "Purchase Agreement",
"parentId": 1,
"activeNo": 1,
"menuList": {
"object": ,
"json": ""
}
}
],
"json": "[{"MenuId":2,"MenuName":"Purchase Agreement","ParentId":1,"ActiveNo":1,"MenuList":{"Object":,"Json":""}}]"
}
}
]
jquery mysql asp.net json asp.net-core
jquery mysql asp.net json asp.net-core
edited Nov 8 at 4:34
Tân Nguyễn
1
1
asked Nov 8 at 3:27
Han Whui Teh
11
11
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53201137%2fjson-dynamic-menu-in-asp-net-core-2-1-razor-page-with-web-api%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown