Linq to sql 问题 error 2010: The Column 'MaxSpeed' specified as part of this MSL does not exiMaxspeed 这一列,是我新增的。 实体也更新了,但就是提示说不在当前架构中?哪位朋友遇到过这种问题么?在线等 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 单步调试一下,看dataContxt的Connectstring是不是和你想连的数据库一致重新映射DBML时有可能改变了连接字符串 捕捉到 System.Data.MappingException Message=指定的架构无效。错误: GpsDecoding.msl(153,12) : 错误 2010: 指定为该 MSL 一部分的列“MaxSpeed”不存在于 MetadataWorkspace 中。 Source=System.Data.Entity StackTrace: 在 System.Data.Mapping.StorageMappingItemCollection.Init(EdmItemCollection edmCollection, StoreItemCollection storeCollection, IEnumerable`1 xmlReaders, List`1 filePaths, Boolean throwOnError) 在 System.Data.Metadata.Edm.MetadataCache.StoreMetadataEntry.LoadStoreCollection(EdmItemCollection edmItemCollection, MetadataArtifactLoader loader) 在 System.Data.Metadata.Edm.MetadataCache.StoreItemCollectionLoader.LoadItemCollection(StoreMetadataEntry entry) 在 System.Data.Metadata.Edm.MetadataCache.LoadItemCollection[T](IItemCollectionLoader`1 itemCollectionLoader, T entry) 在 System.Data.Metadata.Edm.MetadataCache.GetOrCreateStoreAndMappingItemCollections(String cacheKey, MetadataArtifactLoader loader, EdmItemCollection edmItemCollection, Object& entryToken) 在 System.Data.EntityClient.EntityConnection.LoadStoreItemCollections(MetadataWorkspace workspace, DbConnection storeConnection, DbProviderFactory factory, DbConnectionOptions connectionOptions, EdmItemCollection edmItemCollection, MetadataArtifactLoader artifactLoader) 在 System.Data.EntityClient.EntityConnection.GetMetadataWorkspace(Boolean initializeAllCollections) 在 System.Data.EntityClient.EntityConnection.InitializeMetadata(DbConnection newConnection, DbConnection originalConnection, Boolean closeOriginalConnectionOnFailure) 在 System.Data.EntityClient.EntityConnection.Open() 在 System.Data.Objects.ObjectContext.EnsureConnection() 在 System.Data.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption) 在 System.Data.Objects.ObjectQuery`1.System.Collections.Generic.IEnumerable<T>.GetEnumerator() 在 LastPositionService.LastPosiHandler.Start() 位置 F:\SVN_AW\04 代码\GpsCenter\LastPositionService\LastPosiHandler.cs:行号 115 InnerException: 数据库中插入数据的时候怎么触发事件呢? 如何在label中画直线? 新手菜鸟问题....求教思路,一小程序实现qq的自动登陆 水晶报表导出到EXCEL格式混乱 救命,被炒鱿鱼!C#开发智能设备. C#字符转换的问题 在C#中如何提供类似C++中的#include 预编译指令? 了解ftp协议的朋友请进 求解:我在英文windows操作系统上开发的win(C#)的程序界面不能正常显示在中文windows操作系统上 开了好几个帖子也没有答案,高手帮忙啊,解决后再加分 求一个简单的正则表达式 关于读写网络流和读写串口的区别
重新映射DBML时有可能改变了连接字符串
捕捉到 System.Data.MappingException
Message=指定的架构无效。错误:
GpsDecoding.msl(153,12) : 错误 2010: 指定为该 MSL 一部分的列“MaxSpeed”不存在于 MetadataWorkspace 中。
Source=System.Data.Entity
StackTrace:
在 System.Data.Mapping.StorageMappingItemCollection.Init(EdmItemCollection edmCollection, StoreItemCollection storeCollection, IEnumerable`1 xmlReaders, List`1 filePaths, Boolean throwOnError)
在 System.Data.Metadata.Edm.MetadataCache.StoreMetadataEntry.LoadStoreCollection(EdmItemCollection edmItemCollection, MetadataArtifactLoader loader)
在 System.Data.Metadata.Edm.MetadataCache.StoreItemCollectionLoader.LoadItemCollection(StoreMetadataEntry entry)
在 System.Data.Metadata.Edm.MetadataCache.LoadItemCollection[T](IItemCollectionLoader`1 itemCollectionLoader, T entry)
在 System.Data.Metadata.Edm.MetadataCache.GetOrCreateStoreAndMappingItemCollections(String cacheKey, MetadataArtifactLoader loader, EdmItemCollection edmItemCollection, Object& entryToken)
在 System.Data.EntityClient.EntityConnection.LoadStoreItemCollections(MetadataWorkspace workspace, DbConnection storeConnection, DbProviderFactory factory, DbConnectionOptions connectionOptions, EdmItemCollection edmItemCollection, MetadataArtifactLoader artifactLoader)
在 System.Data.EntityClient.EntityConnection.GetMetadataWorkspace(Boolean initializeAllCollections)
在 System.Data.EntityClient.EntityConnection.InitializeMetadata(DbConnection newConnection, DbConnection originalConnection, Boolean closeOriginalConnectionOnFailure)
在 System.Data.EntityClient.EntityConnection.Open()
在 System.Data.Objects.ObjectContext.EnsureConnection()
在 System.Data.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption)
在 System.Data.Objects.ObjectQuery`1.System.Collections.Generic.IEnumerable<T>.GetEnumerator()
在 LastPositionService.LastPosiHandler.Start() 位置 F:\SVN_AW\04 代码\GpsCenter\LastPositionService\LastPosiHandler.cs:行号 115
InnerException: