MVC4,C#,SQL2008,VisualStudio2012, [英] MVC4, C#, SQL2008, VisualStudio2012,

查看:92
本文介绍了MVC4,C#,SQL2008,VisualStudio2012,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,



我想用SQL Server 2008连接创建一个简单的MVC应用程序。



而不是创建类(模型)。我添加了一个dll作为引用,其中inturn引用了一些其他项目(而不是MVC)的Business类库。



现在,我如何管理自己来创建数据库使用我添加的DLL的表。



同时我发现添加控制器时出错;



错误是:无法检索元数据



任何有关此问题的帮助将不胜感激很多!在此先感谢!!

Hello,

I would like to create a Simple MVC Application with SQL Server 2008 connectivity.

Instead of creating classes (Models). I have added a dll as Reference which inturn refers a Business class Library of some other project(not MVC).

Now, How can i manage myself to create a database with tables using the dll i have added.

Meanwhile i found the Error while Adding a Controller;

The error was: "unable to retrieve metadata"

Any help regarding this would be appreciated a lot!! Thanks in advance!!

推荐答案

你写的这个.DLL ??它究竟做了什么?它是否实现了EntityFramework模型?



如果对此.DLL一无所知,就不可能告诉你任何有用的东西。
Did you write this .DLL?? What does it do, exactly?? Does it implement a EntityFramework model??

Without knowing ANYTHING at all about this .DLL, it''s impossible to tell you anything useful.


这篇关于MVC4,C#,SQL2008,VisualStudio2012,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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