什么需要依赖C#实体框架程序? [英] What needs dependency a C# entity framework program ?

查看:82
本文介绍了什么需要依赖C#实体框架程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
我使用c#编写大型程序并使用实体框架.
我需要运行此程序而无需安装Visual Stdio,现在我需要安装才能运行此程序.
我安装了点网框架4和SQLExpr32_x86_enu,但是我的程序无法正常工作!

Hi all
I make large program with c# and use entity framework .
I need run this program without install Visual Stdio now I what needs install to run this program.
I install dot net framework 4 and SQLExpr32_x86_enu but not work my program !

推荐答案

您需要学习并了解部署Windows应用程序的含义. 一个很好的起点可以在 MSDN 中找到[ ^ ]有关该主题的文档.
You need to learn and understand what it means to deploy a windows application.
A good starting point for this can be found in the MSDN[^] documentation on the subject.


创建一个安装和部署"项目,而不是手动执行此项目,该项目将为您处理依赖项和程序集注册.这应该比任何手动安装都要好.

您不应该尝试通过您的应用安装SQL Server:

0)您只能出于版权原因分发SQL Server Express-不能分发SQL Server完整版.
1)他们可能已经在网络上安装了SQL Server.如果是这样,那么他们大概会想使用该版本.
2)如果他们确实安装了SQL Server,并且您开始激增SQL Server Express实例,那么您将烦恼数据库管理员...
3)与在用户控制下的多个分散版本相比,备份SQl Server的单个站点的可能性要大得多.
4)对于普通"用户来说,安装和管理Sql Server非常复杂-这不是一个好主意!
5)它将破坏使用SqlServer而不是SqlCE或SQLite的主要优势-多用户访问.如果每个人都安装了自己的SQL Server副本,那么您将拥有数据库的多个副本,每个副本都由一个人使用.这会引起一些混乱,并且(取决于您编写原始数据库的方式)可能会花费一些精力才能在遇到问题时将其合并到单个实例中.
Instead of doing this manually, create a "setup and deployment" project, which will handle the dependencies and assembly registration for you. That should work better than any manual installation.

You should not try to install SQL Server with your app:

0) You can only distribute SQL Server Express for copyright reasons - not SQL Server full version.
1) They may already have SQL Server installed on the network. If so, then they will presumably want to use that version.
2) If they do have SQL server installed and you start proliferating SQL server Express instances, you are going to annoy the heck out of the database administrator...
3) A single site installation of SQl Server is a lot more likely to be backed up than a number of scattered version under user control.
4) Sql server is quite complex for a "normal" user to install and administer - it is not a good idea!
5) It will destroy the primary advantage of using Sql Server over SqlCE or SQLite - multiuser access. If everyone installs their own copy of SQL server, then you will have multiple copies of your database, each used by a single person. This will cause some confusion, and (depending on how you wrote the original database) may take some considerable effort to combine into a single instance when the problem is realized.


这篇关于什么需要依赖C#实体框架程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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