public?static?void?ExportGroupMembers(ObjectId?id){ ????if(session.get("companyid")?==?null) ????login(); ???? Group?group??=?Group.findById(id); Map<String,Member>?members?...
分类:
其他好文 时间:
2015-07-29 16:04:31
阅读次数:
143
很多时候我们都需要对实体对象进行序列化与反序列化,而ObjectId类型,只能用mongo的驱动以bson格式来序列化,但我们对外的交互,一般是json格式.有两种解决方案: 1.自己写一个json.net的ObjectIdConverter来针对ObjectId,适用于json.net 2...
分类:
数据库 时间:
2015-07-14 19:35:29
阅读次数:
123
我用过网上很多的修改属性的方法,但是都没有能够修改object的宽度和高度的值,因为我的object是用VLC播放的控件嵌入到页面中,VLC的宽度和高度是只读属性,要想修改其属性,只能将“<objectid="video0"align="middle"classid="clsid:591D3014-8D3C-4BA0-869B-008B23125E0C..
分类:
Web程序 时间:
2015-07-12 00:26:51
阅读次数:
228
-- Ensure a USE statement has been executed first.SET NOCOUNT ON;DECLARE @objectid int;DECLARE @indexid int;DECLARE @partitioncount bigint;DECLARE @s....
分类:
数据库 时间:
2015-07-07 11:05:52
阅读次数:
123
本文转自http://www.cnblogs.com/stephen-liu74/archive/2012/08/03/2553803.html1. 基本查询: 构造查询数据。 > db.test.findOne() { "_id" : ObjectId("4fd58ecbb9ac507e96276...
分类:
数据库 时间:
2015-06-29 19:56:17
阅读次数:
189
由于工作需要,学习了正则表达式匹配。从MongoDB导出的数据文本大致是这样的:{ "_id" : ObjectId("55370b4112db760740809f79"), "CartKey" : { "CustomerId" : NumberLong(471) }, "LastUp...
分类:
其他好文 时间:
2015-06-23 15:19:34
阅读次数:
265
restfull路由如下:router.get('/:id', controller.show);mongoes代码如下:exports.show = function(req, res) { Notice.findById(req.params.id, function (err, notice....
分类:
其他好文 时间:
2015-06-17 16:35:08
阅读次数:
204
1. 基本查询: 构造查询数据。 > db.test.findOne() { "_id" : ObjectId("4fd58ecbb9ac507e96276f1a"), "name" : "stephen", "age" : 35, "genda" : "male", "email" : "xxx@...
分类:
数据库 时间:
2015-06-16 18:19:04
阅读次数:
211
用mxml创建复杂Object如下<fx:Objectid="alex"name="Alex"catlog="dog">
<fx:size>
<fx:Objectlength="55cm"height="45cm">
<fx:detail>
<fx:Objectlook="nice"sound="wang"/>
</fx:detail>
</fx:Object>
</fx:size>
</fx:..
分类:
其他好文 时间:
2015-06-12 22:23:29
阅读次数:
197
原因分析: 队列中存储的objectId属性是字符串,反序列化字符串转换成objectid类型时报错解决方法: 1、定义ObjectIdConverter属性类,反序列化时将字符串转换成ObjectId class ObjectIdConverter : JsonConverter { ...
分类:
其他好文 时间:
2015-05-15 13:21:11
阅读次数:
156