2012-10-12 - NoSQL in .NET - mit Redis und Mongodb
55
-
Upload
johannes-hoppe -
Category
Technology
-
view
1.508 -
download
0
description
Transcript of 2012-10-12 - NoSQL in .NET - mit Redis und Mongodb
› SET note1:title "Mittag"
› SET note1:message "nicht vergessen"
› KEYS note1:*
› GET note1:title
› DEL note1:title note1:message
http://bit.ly/ISv9f6
–
› use WebNote
› db.Notes.save( { Title: 'Mittag', Message: 'nicht vergessen‘ } );
› db.Notes.save
–
› db.Notes.find();
› db.Notes.find({ Title: /Test/i });
› db.Notes.find( { "Categories.Color": "red"}).limit(1);
–
› db.Notes.update({Title: 'Test'}, {'$set': {Categories: []}});
› db.Notes.update({Title: 'Test'}, {'$push': {
Categories: {Color: 'Red'} }
});
–
› db.dropDatabase();
› db.Notes.drop();
› db.Notes.remove();
››
https://nuget.org/packages/Mongo2Go/