This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hello, can we expect some samples how to user Lightspeed and Amazon SimpleDB in near future? Thanks |
|
|
I was jus t trying to add new row in SimpleDB DB using this code: private static readonly LightSpeedContext<simpledbLightSpeedModelUnitOfWork> LightSpeedContext = new LightSpeedContext<simpledbLightSpeedModelUnitOfWork> When I'm executing it I'm getting this error:
See the end of this message for details on invoking
Line 270 is "unitOfWorkSimpleDB.Add(new Charge". My simpledbLightSpeedModel model contains one entity which was generated automatically by using drag&drop from Server Explorer which is using "SimpleDB Management Tools". Any ideas what I'm doing wrong? Thanks |
|
|
We weren't planning any SimpleDB-specific samples: you should be able to use LightSpeed with SimpleDB just as with any other provider, albeit with some limitations imposed by the SimpleDB engine and a custom connection string format (see Help Topics > Databases > Amazon SimpleDB for info). What sort of topics would you like to see in a SimpleDB sample? |
|
|
Maybe very small configuration and querying sample? I was trying to add new row using code from my previous post and I'm getting this weird error that "The method or operation is not implemented." so I thought maybe I'm doing something wrong and that's why I asked for sample. |
|
|
Good point, there are some configuration considerations particularly around identity methods. We'll see if we can produce a simple sample or blog post to clarify this. In the meantime, I think you'll get this error if you have an IdentityMethod that requires talking to the database (e.g. KeyTable). Set your identity method to IdentityMethod.Guid to avoid this. (Also, another customer found an error that could occur with certain LINQ queries, though this will give you a NotSupportedException rather than a NotImplementedException. This has since been fixed: see http://www.mindscape.co.nz/forums/Thread.aspx?ThreadID=2664 for info.) |
|
|
For what it's worth, here's a fragment from our test suite that quickly shows our configuration and usage: private static readonly LightSpeedContext Context = new LightSpeedContext I should have mentioned that using IdentityMethod.Guid won't work if you have existing items whose names are not GUIDs. In this case you will need to declare your entities as Entity<string>. Because we don't provide an identity generator that returns strings, this in turn means you will have to override GeneratedId() to create string item names. (And in this case I don't think it matters what your context IdentityMethod is.) |
|