Oh, sorry.
CargoOperationEntity coe = new CargoOperationEntity();
coe.CargoCalculationCompleted = DateTime.Now;
NorTenderedEntity nor = new NorTenderedEntity();
nor.NorTendered = DateTime.Now;
nor.CargoOperation = coe;
coe.NorTendered.Add(nor);
This is on the client (without access to the db). The last line gives this exeption:
System.InvalidOperationException was unhandled
Message="Egenskapen ConnectionString er ikke initialisert.***"
Source="System.Data"
StackTrace:
ved System.Data.SqlClient.SqlConnection.PermissionDemand()
ved System.Data.SqlClient.SqlConnectionFactory.PermissionDemand(DbConnection outerConnection)
ved System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
ved System.Data.SqlClient.SqlConnection.Open()
ved SD.LLBLGen.Pro.ORMSupportClasses.DaoBase.ExecuteMultiRowRetrievalQuery(IRetrievalQuery queryToExecute, ITransaction containingTransaction, IEntityCollection collectionToFill, Boolean allowDuplicates, IEntityFields fieldsUsedForQuery)
ved SD.LLBLGen.Pro.ORMSupportClasses.DaoBase.PerformGetMultiAction(ITransaction containingTransaction, IEntityCollection collectionToFill, Int64 maxNumberOfItemsToReturn, ISortExpression sortClauses, IPredicate selectFilter, IRelationCollection relations, Int32 pageNumber, Int32 pageSize)
ved JoTankers.JoSof.DAO.DaoClasses.NorTenderedDAO.GetMulti(ITransaction containingTransaction, IEntityCollection collectionToFill, Int64 maxNumberOfItemsToReturn, ISortExpression sortClauses, IEntityFactory entityFactoryToUse, IPredicateExpression filter, IEntity cargoOperationInstance, Int32 pageNumber, Int32 pageSize)
ved JoTankers.JoSof.DAO.CollectionClasses.NorTenderedCollection.GetMultiManyToOne(IEntity cargoOperationInstance, Int64 maxNumberOfItemsToReturn, ISortExpression sortClauses, IPredicateExpression filter, Int32 pageNumber, Int32 pageSize)
ved JoTankers.JoSof.DAO.CollectionClasses.NorTenderedCollection.GetMultiManyToOne(IEntity cargoOperationInstance, IPredicateExpression filter)
ved JoTankers.JoSof.DAO.EntityClasses.CargoOperationEntity.GetMultiNorTendered(Boolean forceFetch, IEntityFactory entityFactoryToUse, IPredicateExpression filter)
ved JoTankers.JoSof.DAO.EntityClasses.CargoOperationEntity.GetMultiNorTendered(Boolean forceFetch)
ved JoTankers.JoSof.DAO.EntityClasses.CargoOperationEntity.get_NorTendered()
ved TestConsole.Program.test() i C:\Documents and Settings\Administrator\Mine dokumenter\Visual Studio 2005\Projects\JoSof\TestConsole\Program.cs:linje 53
ved TestConsole.Program.Main(String[] args) i C:\Documents and Settings\Administrator\Mine dokumenter\Visual Studio 2005\Projects\JoSof\TestConsole\Program.cs:linje 21
ved System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
ved System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
ved Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
ved System.Threading.ThreadHelper.ThreadStart_Context(Object state)
ved System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
ved System.Threading.ThreadHelper.ThreadStart()
***"Egenskapen ConnectionString er ikke initialisert." = The property ConnectionString is not initialized.