ormlite mysql

1、     

 public  OrmLiteConnectionFactory ormlit1 = new OrmLiteConnectionFactory("server=localhost;user id=root;password=root;persist security info=True;database=weibodata;CharSet='utf8';", MySqlDialect.Provider);


2、使用ServiceStack.Text.JsonSerializer.DeserializeFromString<List<string>>(filedata)实例化对象

[Datacontract]
class xxx{
[datamember]
public long ms{get;set;}
}

与json中的属性相对应

posted @ 2013-04-05 18:51  win_and_first  阅读(273)  评论(0编辑  收藏  举报