locked
The local scope can only be retrieved by a microsoft signed assembly. RRS feed

  • Question

  • Here is m y code:

    public static string GetTableName(this IEntityType entityType) { var entitySet = entityType.GetEntitySet();

    //The error occured in this step var entityContainer = entitySet.Parent; var dataService = entityContainer.GetDataService(); var entitysetMapping = dataService.EntitySetMappings.Where(w => w.EntitySet == entityType.GetEntitySet()).SingleOrDefault(); if (entitysetMapping == null) return entityType.GetEntitySetName(); var attribute = entitysetMapping.Attributes.OfType<ISsdlEntitySetAttribute>().SingleOrDefault(); if (attribute == null) return entityType.GetEntitySetName(); return attribute.Table; }


    A first chance exception of type 'System.InvalidOperationException' occurred in Microsoft.LightSwitch.ExportProvider.dll  Additional information: The local scope can only be retrieved by a microsoft signed assembly.


    Thursday, December 12, 2013 3:09 PM

Answers