2
Answers

Importing MVC model class in ASP.NET core MVC with angular 2

Hi,

Is it possible to import a model class(let's say product.cs) which is created in "Models" folder into the angular 2 application instead of creating the same fields under product.ts file and using it in the Asp.NET Core Angular 2 application?

Is there any solution for reusing the code instead of creating 2 classes with same fields?
Answers (2)
0
spirin_a

spirin_a

NA 2 0 20y
Good example, but it has errors: when I try to add a record in Datagrid and click in Combo, an exception occurred in function Edit - "Input string was not in a correct format". How to fix it?
0
Administrator

Administrator

Tech Writer 2.2k 1.6m 22y
0
Administrator

Administrator

Tech Writer 2.2k 1.6m 22y
Dear mahesh, Good Day. I am looking for the code in ADO.net forum but could not find that. I would like to request you is i possible to add to combo in the datagrid and make them associative to each other. I mean to say when one combo box index changed it changed the other combo as well. Just for an example i have country code in one column and country name in one column. when user choose 1 in one combo it automatically select America to other combo provided that there index is similar. and how can i write back that to DataSet . Thanks . FOr ncyoong it might be helpful for You ncyoong http://www.c-sharpcorner.com/Database/PlayingWithDataGridTA.asp
0
Administrator

Administrator

Tech Writer 2.2k 1.6m 22y
Do some home work. ADO.NET section of this site has articles on this topic.