在 Lightswitch 中重命名数据源表后,出现以下运行时异常:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<code>1</code>
<message xml:lang="en-US">
<?xml version="1.0" encoding="utf-16"?><ExceptionInfo><Message>Schema specified is not valid. Errors: 
REDCanonicalData.msl(653,10) : error 2007: The Table 'EntityNames' specified as part of this MSL does not exist in MetadataWorkspace.
REDCanonicalData.msl(652,8) : error 2063: At least one property must be mapped in the set mapping for 'EntityNames'.</Message><StackTrace> at Microsoft.LightSwitch.Threading.DispatcherExtensions.Invoke(IDispatcher dispatcher, Action action)
at Microsoft.LightSwitch.ServerGenerated.Implementation.DataService`1.LogicInvoke[T](Func`1 f)
at Microsoft.LightSwitch.ServerGenerated.Implementation.DataService`1.Microsoft.LightSwitch.ServerGenerated.Implementation.IODataService.LogicInvoke[T](Func`1 f)
at Microsoft.LightSwitch.ServerGenerated.Implementation.DataServiceQueryProvider.QueryableWrapper`1.ExecuteGeneric[TResult](Expression expression)
at Microsoft.LightSwitch.ServerGenerated.Implementation.DataServiceQueryProvider.QueryableWrapper`1.Execute[TResult](Expression expression)
at System.Linq.Queryable.LongCount[TSource](IQueryable`1 source)</StackTrace><ErrorInfo /></ExceptionInfo>
</message>
</error>