佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

楼主: chrizyuen2

[挑战自我] 欢迎任何C#疑难杂症(编写完整软件除外)

  [复制链接]
 楼主| 发表于 6-10-2010 10:33 AM | 显示全部楼层
本帖最后由 chrizyuen2 于 6-10-2010 10:37 AM 编辑

回复 16# hooi1983

Other packages can be installed using the same mechanism described above. The only additional steps are to modify the list of bootstrapper files in Step 2. The easiest way to obtain the necessary entries is to use the Bootstrapper Manifest Generator tool to create a new MSBuild file with the required packages selected. Then save the generated file, open it in a text editor, and copy out the appropriate entries. The Bootstrap Manifest Generator tool can also be used to create your own custom packages that are then installed via the ClickOnce bootstrapper.
http://wix.sourceforge.net/manual-wix3/install_dotnet.htm
SQL CE 4.0 的bootstrapper方法,  我还没有时间深入了解ClinkOnce, 但是我觉得问题不大。

我正在做WIX, 应该会用上三天时间, 这事情, 我相信我能给比较细节的input.

回复

使用道具 举报


ADVERTISEMENT

发表于 6-10-2010 10:44 AM | 显示全部楼层
回复 21# chrizyuen2

酱麻烦,不能直接将 SQL CE 4.0 的 DLL 放在 bin 吗?题外话,SQL CE 4.0 有没有 Auto Number?
想用,但一直 set 不到,用着 SQL Express 先,不过 customer setup 比较麻烦。
回复

使用道具 举报

 楼主| 发表于 6-10-2010 11:03 AM | 显示全部楼层
回复 22# hooi1983

是麻烦了些, 但是真正的实用性很高, 可以support  patch, roll-back, share component, automated build, cross platform targeting. 等等。
如果你单单是校园project , 不需要达成这些requirement
回复

使用道具 举报

发表于 6-10-2010 11:41 AM | 显示全部楼层
回复 23# chrizyuen2

可惜 SQL Express 用不到 SQL Agent
回复

使用道具 举报

发表于 7-10-2010 04:20 PM | 显示全部楼层
回复  chrizyuen2

酱麻烦,不能直接将 SQL CE 4.0 的 DLL 放在 bin 吗?题外话,SQL CE 4.0 有没有 Aut ...
hooi1983 发表于 6-10-2010 10:44 AM


不能, SQL CE 一定要在Client 的电脑内安装。
才 3 MB 左右, 比起 Express 来的话, 我觉得已经很好, 很轻了。
回复

使用道具 举报

发表于 7-10-2010 04:26 PM | 显示全部楼层
回复 25# 宅男-兜着走

SQL CE 有没有 Auto ID?
回复

使用道具 举报

Follow Us
 楼主| 发表于 7-10-2010 04:39 PM | 显示全部楼层
你来找渣? 我专业是C#啦
回复

使用道具 举报

发表于 7-10-2010 07:23 PM | 显示全部楼层
回复 26# hooi1983

Strongly-Typed Dataset 支持 SQL CE 的 Auto Increment.

Linq to sql 直接不支持 SQL CE

Ado.net entity framework(Linq to entity) 支持, 但是没 Auto Increment。

那个时候我是用 SQL CE3.5 来开发。(没理想中的好), 某人说 4.0 已经很多都能 support了。

看你吧
回复

使用道具 举报


ADVERTISEMENT

发表于 7-10-2010 07:24 PM | 显示全部楼层
你来找渣? 我专业是C#啦
chrizyuen2 发表于 7-10-2010 04:39 PM


资料库是程式的核心,为什么不能问呢?
回复

使用道具 举报

 楼主| 发表于 7-10-2010 07:25 PM | 显示全部楼层
资料库是程式的核心,为什么不能问呢?
宅男-兜着走 发表于 7-10-2010 07:24 PM


我不这样认为。
回复

使用道具 举报

 楼主| 发表于 7-10-2010 07:26 PM | 显示全部楼层
回复  hooi1983
Ado.net entity framework(Linq to entity) 支持, 但是没 Auto Increment。
宅男-兜着走 发表于 7-10-2010 07:23 PM


这是错误的。 Linq to EF 可以用auto increment.
回复

使用道具 举报

发表于 7-10-2010 07:27 PM | 显示全部楼层
我不这样认为。
chrizyuen2 发表于 7-10-2010 07:25 PM

我老是说过, 一个程式员如果不会用资料库根本不算是程式员。

不赞同的话
哪请说出你的看法
回复

使用道具 举报

 楼主| 发表于 7-10-2010 07:28 PM | 显示全部楼层
非商业性程序,完全不需要资料库
回复

使用道具 举报

发表于 7-10-2010 07:37 PM | 显示全部楼层
这是错误的。 Linq to EF 可以用auto increment.
chrizyuen2 发表于 7-10-2010 07:26 PM


怎样??? 有直接的方法??
回复

使用道具 举报

发表于 7-10-2010 07:40 PM | 显示全部楼层
非商业性程序,完全不需要资料库
chrizyuen2 发表于 7-10-2010 07:28 PM


至少现在很多软件都需要操作资料库吧?
就连非商业软件的Project, 用电脑来开关灯, 都需要用到资料库来达到软件的完整性。
回复

使用道具 举报

 楼主| 发表于 7-10-2010 07:43 PM | 显示全部楼层
本帖最后由 chrizyuen2 于 7-10-2010 07:45 PM 编辑
至少现在很多软件都需要操作资料库吧?
就连非商业软件的Project, 用电脑来开关灯, 都需要用到资料库 ...
宅男-兜着走 发表于 7-10-2010 07:40 PM


microsoft office
microsoft windows
firefox, chrome
以上都够出名么?都没有用上SQL资料库


Linq to EF, 直接用就好,没有特别处理
  1. create table Persona(PersonaID integer primary key autoincrement,Nombre text)
复制代码

  1. PruebaDBEntities data =newPruebaDBEntities();foreach(int num inEnumerable.Range(1,1000)){Persona p =newPersona(){Nombre="Persona "+ num,Edad= num };
  2.             data.AddToPersona(p);
  3.             data.SaveChanges();Console.WriteLine(p.PersonaID);}
复制代码
回复

使用道具 举报


ADVERTISEMENT

发表于 7-10-2010 08:01 PM | 显示全部楼层
microsoft office
microsoft windows
firefox, chrome
以上都够出名么?都没有用上SQL资料库


...
chrizyuen2 发表于 7-10-2010 07:43 PM




Inner-Exception :   "Server-generated keys and server-generated values are not supported by SQL Server Compact."

相信我了没 ??-.-|||

如果说 WebBrowser 没资料库的话, 那么请问 Favourite, bookmark 是怎么储存的?XML, SQL LITE?
回复

使用道具 举报

发表于 7-10-2010 08:19 PM | 显示全部楼层
The file "history.dat" stores the browsing history (a record of visited pages) in Firefox 2 or below and in Mozilla Suite/SeaMonkey 1.x. (Starting in Firefox 3 and SeaMonkey 2, history.dat is no longer used and the browsing history, as well as bookmarks in Firefox 3, is stored in the file places.sqlite.)


http://aplawrence.com/Web/firefox-sqlite.html
http://kb.mozillazine.org/History.dat

这是有力的证据说 Mozilla 用 SQL Lite 哦。
回复

使用道具 举报

发表于 7-10-2010 09:22 PM | 显示全部楼层
lz,我是看到刚好有 SQL CE 才顺便问下而已,不要将吝啬。

宅男,我是看到 Scott Gu 的 article 才对 SQL CE 4 感兴趣的。
之前听说 SQl CE 3.5 没有 Auto ID Increment 就不感兴趣了。

http://weblogs.asp.net/scottgu/a ... t-with-asp-net.aspx

这里提到 SQL CE 4 不用 install,只需 copy 去 bin folder 就可以,就请教这里的大大。

其实我最感兴趣的是 offset & fetch next。
那我就不用在 SQL 用 row_number 这个 function 了。

http://beyondrelational.com/blog ... -server-ce-4-0.aspx
回复

使用道具 举报

发表于 7-10-2010 09:37 PM | 显示全部楼层
回复 39# hooi1983

不必Install 的话, 至少也要有 SQL CE 的Library 在你的 bin。

offset & fetch next 我以为是什么,原来是 LIMIT
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 12-10-2025 07:38 AM , Processed in 2.394501 second(s), 21 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表