EntityModelCodeGenerator.GenerateCode Method (String, String, String)
Calls the CodeGen API to generate the code file from the CSDL file
Assembly: Microsoft.Data.Entity.Design (in Microsoft.Data.Entity.Design.dll)
[SuppressMessageAttribute("Microsoft.Usage", "CA1806:DoNotIgnoreMethodResults", MessageId = "Microsoft.VisualStudio.Shell.Interop.IVsErrorList.BringToFront")] [SuppressMessageAttribute("Microsoft.Reliability", "CA2000:Dispose objects before losing scope")] [SuppressMessageAttribute("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes")] [SuppressMessageAttribute("Microsoft.Maintainability", "CA1506:AvoidExcessiveClassCoupling")] protected override byte[] GenerateCode( string inputFileName, string inputFileContent, string defaultNamespace )
Parameters
- inputFileName
-
Type:
System.String
The full path of the CSDL file; this is fed in from the ProjectItem
- inputFileContent
-
Type:
System.String
The contents of the CSDL file - this should always be used so that we can gen off of in memory documents
- defaultNamespace
-
Type:
System.String
The default namespace.