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
|
I am trying to use light speed to connect to a amazon simple db. I created a model by dropping a "Domain" on the designer. I am now trying to use it like this:
context = new LightSpeedContext<AssertionModelUnitOfWork>("Default");
using (var uow = context.CreateUnitOfWork()) {
Assertion assertion = new Assertion(); assertion.Subject = "mws:TestSubject"; assertion.Predicate = "mws:TestPredicate"; assertion.Object = "mws:TestObject";
uow.Add(assertion); uow.SaveChanges(); }
I added a connection string in my app.config file like this:
<add name="Default" connectionString="Access Key=my-key-here;Secret Access Key=my-other-key-here" providerName="Mindscape Provider for Amazon SimpleDB"/>
Question: What should the provider name be - if this is supported?
I think it's interpreting this as a SQL connection... but I don't know how to tell it to use the Amazon Simple DB.
Here is the stack trace:
at System.Data.SqlClient.SqlConnection.PermissionDemand() at System.Data.SqlClient.SqlConnectionFactory.PermissionDemand(DbConnection outerConnection) at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) at System.Data.SqlClient.SqlConnection.Open() at ...ctor(IUnitOfWork ) at Mindscape.LightSpeed.Data.DataProviderAdapter.(IUnitOfWork ) at ..(IUnitOfWork ) at ..(IUnitOfWork , TypeModel ) at Mindscape.LightSpeed.LightSpeedContext.(Entity ) at Mindscape.LightSpeed.Entity.GeneratedId() at Mindscape.LightSpeed.Entity`1.get_Id() at Mindscape.LightSpeed.Entity`1.get_IdInternal() at Mindscape.LightSpeed.Model.TypeModel.(Entity ) at Mindscape.LightSpeed.Entity.get_UniqueId() at ..(Entity , UnitOfWorkBase ) at Mindscape.LightSpeed.UnitOfWork.Add(Entity entity) at MWS.Tests.Program.TestTripleStore() in E:\Devo\MWS\MWS.Tests\Program.cs:line 70 at MWS.Tests.Program.Main() in E:\Devo\MWS\MWS.Tests\Program.cs:line 24 at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() |
|