c#


Persisting dynamic object in DynamoDB with .NET SDK


I'm trying to persist the following class to DynamoDB using the .NET SDK:
public class MyClass
{
public string Id { get; set; }
public string Name { get; set; }
public object Settings { get; set; }
}
The problem is with the Settings property. It can be any type of object, and I do not know in advance what might be assigned to it. When I try to persist it to DynamoDB, I get the following exception:
System.InvalidOperationException: 'Type System.Object is unsupported, it has no supported members'
Both the Document Model and Object Persistence Model methods result in the same exception.
Is there a way to persist these objects in DynamoDB? Other databases like MongoDB and Azure DocumentDB will do this without any issue, and they can be deserialized to either the proper type with a discriminator, or as a dynamic JSON object.

Related Links

Getting Data Out of Adwords Test Account
Image retrieval issues due to “Parameter Not Valid”
RelativeSource constructor optional argument
Animating elements in a ContentControl's DataTemplate
How to authenticate user using column encryption of password as well as using password salt technique at business logic?
Topshelf service with dependency on RabbitMQ not starting on reboot
Reject results in BigQuery
Function of user-control type in a master page
how to change the drawstring position when the user changes the coordinates values
FlowLayoutPanel remove control when click on it c#
WPF application touch response on Win8 tablet
Access NUnit Test Name within TestCaseSource
Property value of base class not saved by designer
Ext JS: How to maintain hierarchy of fields when submitting form
How to use regular expression to retrieve information from string [closed]
Registration inserting into MS Access database multiple times

Categories

HOME
gulp
model-view-controller
typo3
virtual-machine
locale
aix
window.open
blob
latex
where
lithium
esxi
sms
download
ms-access-2010
atlassian-fisheye
schema
qt4
handlebars.js
pip
webpack-dev-server
kairosdb
ng2-charts
oxid
aggregate
console-application
internet-explorer-7
ringcentral
geography
loader
autologin
hl7-fhir
keystone
monad-transformers
matlab-gui
google-drive-android-api
oracle10g
sqldependency
voyager
border-layout
gstreamer-1.0
oracle-bpm-suite
sknode
vertical-alignment
test-kitchen
gridgain
chrome-custom-tabs
synchronized
reqif
qtwebkit
stream-socket-client
cancan
enet
fluent-nhibernate-mapping
bioperl
webmatrix
multi-targeting
disassembly
fileopendialog
stripes
android-music-player
mac-app-store
ldd
vga
key-value-store
qtruby
avaudiorecorder
razorengine
treelist
custom-build-step
gtkwave
maven-antrun-plugin
edgar
persian
log-analysis
firebase-tools
dockerpy
crtdbg.h
fiware-health
frisby.js
formbuilder
windows-search
im4java
ccmenuitem
msdropdown
mvcgrid
visual-studio-setup-proje
reactjs-native
rda
infor-eam
imaplib
lastinsertid
jfilechooser
randomaccessfile
scidb
myrrix
caroufredsel
source-depot
maven-webstart-plugin
biztalk-deployment
dnsbl
cryptarithmetic-puzzle
states
php-gettext
animationdrawable
parsec
pinchzoom
idtabs
datejs
automapper-2
clgeocoder
discussion-board
cherokee
iphone-maps
uccapi
ffdshow
unauthorized

Resources

Encrypt Message