public static async Task<string> AsXmlAsync( this DbContext dbContext, DbContextConverterOptions options = null ) { var converter = new XmlDbContextConverter(dbContext, options); return await converter.Serialize(); }
public static async Task <string> AsXmlAsync( this DbContext dbContext, ContextDataEnum contextData ) { DbContextConverterOptions options = DbContextConverterOptions.DEFAULT.WithContextData(contextData); return(await dbContext.AsXmlAsync(options)); }
public static async Task <string> AsXmlAsync( this DbContext dbContext, DbContextConverterOptions options = null ) { var converter = new XmlDbContextConverter(dbContext, options); return(await converter.Serialize()); }
public AbstractDbContextSerializer(DbContext context, DbContextConverterOptions options) { Context = context; if (options == null) { Options = GetDefaultOptions(); } else { Options = options; } }
public XmlDbContextConverter(DbContext context, DbContextConverterOptions options = null) : base(context, new XmlDbContextConverterOptions(options)) { }
public XmlDbContextConverterOptions(DbContextConverterOptions options = null) : base (options) { }