public OperationCallBuilder(nutility.ITypeClassMapper typemap) { xml = typemap.GetService<XDocument>(); metadata = typemap.GetService<IParameterMetadataProvider>(); metadata.LoadSchemaFor(GetOperationName()); }
public ProcedureCallAsXmlMessage(nutility.ITypeClassMapper typemap) { xml = typemap.GetValue<XDocument>(RPC_Constant.SerializedRPCDataType); metadata = typemap.GetService<IParameterMetadataProvider>(); metadata.LoadSchemaFor(GetOperationName()); }
static string GetStoredProcedureCall(nutility.ITypeClassMapper typemap) { var builder = typemap.GetService<IOperationCallBuilder>(); return $"{builder.GetRunStatement()} {builder.GetOperationName()} {builder.GetArguments()}"; }