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
|
Since we are having more difficulty than we thought with LightSpeed 3 upgrade, I have created a test Domain in SimpleDB and have created a simple Console App to test this with. As I run into issues I will post them. First issue: ------------------------------------------------------------
System.NotImplementedException was unhandled Message="The method or operation is not implemented." Source="Mindscape.LightSpeed" StackTrace: at ..CreateConnection() 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 LightSpeed3Tests.Program.Main(String[] args) in C:\Users\joe\Documents\Visual Studio 2008\Projects\LightSpeed3Tests\LightSpeed3Tests\Program.cs:line 19 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() InnerException: ------------------------------------------------------------
here is the code:
------------------------------------------------------------ class Program
{ static void Main(string[] args) { var data = context.CreateUnitOfWork(); var x = data.Products.Where(p => p.CreatedOn <= DateTime.UtcNow).ToList(); for (int i = 1; i <= 20; i++) { data.Add(new Product() { Name = "test " + i.ToString(), Description = "this is a test " + i.ToString(), Price = 1.45F + i, IsActive = true }); }
data.SaveChanges(); }
public static readonly LightSpeedContext<LightSpeedModel1UnitOfWork> context = new LightSpeedContext<LightSpeedModel1UnitOfWork> { AutoTimestampMode = Mindscape.LightSpeed.AutoTimestampMode.Utc, CascadeDeletes = false, ConnectionString = String.Format("Access Key={0};Secret Access Key={1}", ConfigurationManager.AppSettings["AwsAccessKey"], ConfigurationManager.AppSettings["AwsSecretkey"]), DataProvider = Mindscape.LightSpeed.DataProvider.AmazonSimpleDB, PluralizeTableNames = false, Logger = new TraceLogger() }; } ------------------------------------------------ Domain name: Product IdentityType: Guid SoftDelete = True Track Create Time = True Track Update Time = True columns: Name (string) Description(string) Price(single) IsActive(boolean) -----------------------------------------------------------
|
|
|
sorry for the duplicate post, I got an error posting and thought it did not go through |
|