本文介绍了如何连接Raven Db数据库并执行CRUD操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我想在mvc 4 asp.net中创建一个应用程序但是有些问题就像连接raven db create document,update,edit,delete
联系上课
Hi All,
I want make one application in mvc 4 asp.net but some issue occurred like connect raven db create document , update ,edit ,delete
contact is class
public class Contact
{
public string Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public DateTime DateOfBirth { get; set; }
public string Address { get; set; }
public string City { get; set; }
}
用于创建和连接数据库
for create and connect database
documentStore = new DocumentStore { Url = "http://localhost:8085/" };
documentStore.Initialize();
using (var session = documentStore.OpenSession())
{
session.Store(contact);
session.SaveChanges();
}
但是在raven db中输入数据库
But does entry in database in raven db
推荐答案
这篇关于如何连接Raven Db数据库并执行CRUD操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!