Cannot be AutoMapped to Schema, use the extension method MapToSchema TrueVault.Net.Extensions.MapToSchema
コード例 #1
0
 /// <summary>
 ///     Creates a Schema request DTO for POST or PUT operations.
 ///     The Schema will be serialized and converted to a Base64 Encoded JSON string.
 /// </summary>
 /// <param name="schemaDto">The schema to create</param>
 public SchemaSaveRequestDto(SchemaDto schemaDto)
 {
     schema =
         Convert.ToBase64String(
             Encoding.ASCII.GetBytes(new JsonSerializer <SchemaDto>().SerializeToString(schemaDto)));
 }
コード例 #2
0
 /// <summary>
 ///     Creates a Schema request DTO for POST or PUT operations.
 ///     The Schema will be serialized and converted to a Base64 Encoded JSON string.
 /// </summary>
 /// <param name="schemaDto">The schema to create</param>
 public SchemaSaveRequestDto(SchemaDto schemaDto)
 {
     schema =
         Convert.ToBase64String(
             Encoding.ASCII.GetBytes(new JsonSerializer<SchemaDto>().SerializeToString(schemaDto)));
 }