如何将此项目的模型部分复制到visual studio [英] How do I copy this project's model part to visual studio

查看:83
本文介绍了如何将此项目的模型部分复制到visual studio的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我希望在我的视觉工作室中拥有的项目:



https://canvasjs.com/asp-net-mvc-charts/dynamic- live-line-chart /



i复制了视图和控制器部分但是

i真的不知道如何复制模型..无论如何我应该把它复制到什么类型的文件?



我尝试了什么:



i不知道该怎么做。我试过模型作为一个类,但显然它不起作用

Here is a project i want to have in my visual studio:

https://canvasjs.com/asp-net-mvc-charts/dynamic-live-line-chart/

i copied the view and the controller part but
i really don't know how to copy the model... what type of file should i copy it in anyway??

What I have tried:

i don't know what to do. i tried model as a class but clearly it didn't work

推荐答案

我可能在这里严重遗漏了一些东西,但你提供的链接中的模型选项卡只是一个类在c#中。



将它添加到项目中,例如名为Models的文件夹中,然后在代码中使用它。



不确定有什么困难。
I may be severely missing something here but that model tab in the link you provided is simply a class in c#.

Add it to your project, in a folder called Models for example, and then use it in your code.

Not sure what difficulty there is.


这篇关于如何将此项目的模型部分复制到visual studio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆