Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Outputs an EDMX artifact to the provided XmlWriter.
Namespace: Microsoft.Data.Edm.Csdl
Assembly: Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)
Syntax
'Declaration
Public Shared Function TryWriteEdmx ( _
model As IEdmModel, _
writer As XmlWriter, _
target As EdmxTarget, _
<OutAttribute> ByRef errors As IEnumerable(Of EdmError) _
) As Boolean
'Usage
Dim model As IEdmModel
Dim writer As XmlWriter
Dim target As EdmxTarget
Dim errors As IEnumerable(Of EdmError)
Dim returnValue As Boolean
returnValue = EdmxWriter.TryWriteEdmx(model, _
writer, target, errors)
public static bool TryWriteEdmx(
IEdmModel model,
XmlWriter writer,
EdmxTarget target,
out IEnumerable<EdmError> errors
)
public:
static bool TryWriteEdmx(
IEdmModel^ model,
XmlWriter^ writer,
EdmxTarget target,
[OutAttribute] IEnumerable<EdmError^>^% errors
)
static member TryWriteEdmx :
model:IEdmModel *
writer:XmlWriter *
target:EdmxTarget *
errors:IEnumerable<EdmError> byref -> bool
public static function TryWriteEdmx(
model : IEdmModel,
writer : XmlWriter,
target : EdmxTarget,
errors : IEnumerable<EdmError>
) : boolean
Parameters
- model
Type: Microsoft.Data.Edm.IEdmModel
The model to be written.
- writer
Type: System.Xml.XmlWriter
The XmlWriter the generated EDMX will be written to.
- target
Type: Microsoft.Data.Edm.Csdl.EdmxTarget
The target implementation of the EDMX being generated.
- errors
Type: System.Collections.Generic.IEnumerable<EdmError>%
The errors that prevented successful serialization or no errors if serialization was successful.
Return Value
Type: System.Boolean
true if the serialization was successful; otherwise, false.