Monodevelop模块-相当于ADO.NET实体框架
我正在寻找一个 Monodevelop 模块,它允许我运行类似 ADO.NET 实体框架的语法。我已经安装了 MySql.Data 并成功运行 string connStr = "server=localhost;user=root;database=dbname;port=3306;password=mypassword;"; 之类的东西MySqlConnection conn = new MySqlConnection(connStr);这允许我对数据库运行原始 sql 查询,但想知道要加载什么以及如何使用 db.Select 和 db.SaveChanges 等功能。谢谢。
更新。我将 monodevelop 与 mono 一起使用,而不是与 /.net/ 一起使用。
I am looking for a Monodevelop module which would allow me to run ADO.NET Entity framework-like syntax. I have installed MySql.Data and successfully run stuff like string connStr = "server=localhost;user=root;database=dbname;port=3306;password=mypassword;"; MySqlConnection conn = new MySqlConnection (connStr); which allows me to run raw sql queries to the database but would like to know what to load and how to use to have things like db.Select and db.SaveChanges possible. Thank you.
Update. I use monodevelop with mono, not with /.net/.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以将 Spring.NET 框架与 Hibernate ORM 结合使用 - 也许有点过头了,但值得一试!
http://www.springframework.net/doc-latest/reference/html /orm.html
You could use the Spring.NET framework with Hibernate ORM - perhaps a little bit of overkill, but worth a try!
http://www.springframework.net/doc-latest/reference/html/orm.html
由于 mono 不支持 实体框架,因此您无法使用它的 ORM 语法来处理数据库。不过,还有其他 ORM 工具,例如 DbLinq(预览版本应包含在 Mono 中),或者您也可以尝试查看此网站,了解列出的某些工具是否支持单声道。
Since mono doesn't support Entity framework you can't use it's ORM syntax to work with databases. There are however other ORM tools like DbLinq (preview version should be included in mono) or you can try to look at this website and find out if some of the listed tools supports mono.