Summary: This document provides basic information about the extension providing Entity Framework support for C# and VB.NET |
This extension provides support for Entity Framework. The calculation of Automated Function Points for your .NET analyses will be supplemented through the creation of new objects and links specific to Entity Framework framework that will link back to objects/links produced by the base .NET analyzer.
If your .NET application contains Entity Framework source code and you want to view these object types and their links, then you should install this extension. More specifically the extension will identify:
Entity Framework is delivered with the .NET Framework. Therefore the following .NET frameworks are supported by this extension:
Version | Supported |
---|---|
3.0 and above |
'System.Data.Linq.EntityMapping.TableAttribute', 'System.Data.Objects.DataClasses.EdmEntityTypeAttribute', 'System.Data.Objects.DataClasses.EdmTypeAttribute.Name', 'System.ComponentModel.DataAnnotations.TableAttribute', 'System.ComponentModel.DataAnnotations.Schema.TableAttribute' 'System.ComponentModel.DataAnnotations.Schema.NotMapped', 'System.ComponentModel.DataAnnotations.Schema.NotMappedAttribute', 'System.ComponentModel.DataAnnotations.NotMappedAttribute' |
System.Data.Entity.DbModelBuilder.Entity<TEntityType>() System.Data.Entity.DbModelBuilder.Conventions.Remove<TConvention>() System.Data.Entity.DbContext.OnModelCreating( DbModelBuilder modelBuilder ) System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<TEntityType>.ToTable(String) |
<edmx:StorageModels> <EntityType> <Property> </Property> </EntityType> </edmx:StorageModels> <edmx:ConceptualModels> <EntityType> <Property> </Property> </EntityType> </edmx:ConceptualModels> <edmx:Mappings> <MappingFragment> <ScalarProperty> </ScalarProperty> </MappingFragment> </edmx:Mappings> |
Function Points (transactions) | Quality and Sizing |
---|---|
CAST AIP release | Supported | Supported Technology |
---|---|---|
8.3.x | C# and VB.NET | |
8.2.x | C# and VB.NET |
This extension is compatible with the following DBMS servers:
DBMS | Supported |
---|---|
CSS/PostgreSQL | |
Oracle | |
Microsoft SQL Server |
An installation of any compatible release of CAST AIP (see table above) |
Please see Entity Framework 1.1 - Bug Fix List.
Include the extension using the interface in AIP Console:
There is nothing further to do. Follow the instructions below to run a new analysis/snapshot to generate new results:
In Entity Framework ≥ 1.1, if you are using the extension with CAST AIP ≥ 8.3.x, a set of Entity specific items are now automatically imported when the extension is installed. These items will be available in the CAST Transaction Configuration Center (click to enlarge):
Once the extension is installed, no further configuration changes are required before you can package your source code and run an analysis. The process of packaging, delivering and analyzing your source code does not change in any way:
Once the analysis/snapshot generation has completed, you can view the results in the normal manner. The following objects and links will be displayed in CAST Enlighten:
Icon | Object type |
---|---|
![]() | Entity Wrapper |
![]() | Conceptual Model |
![]() | Conceptual Class |
![]() | Conceptual Property |
![]() | Database Object |
![]() | Mapping Model |
![]() | Mapping Class |
![]() | Mapping Property |
![]() | Storage Model |
![]() | Storage Model Table |
![]() | Storage Model Property |
Source | Link type | Target | Example | |
---|---|---|---|---|
Public C#/VB.NET class | Rely on | Entity object |
| |
Entity object | Use | Database table | ||
Class property get/set | Call | Conceptual property | ||
Conceptual property | Call | Storage Model Property via Mapping Property | ||
Storage Model Property | Use | Database table |
In this section we list the most significant functional limitations that may affect the analysis of applications using Entity Framework: