public void Setup() { var metadata = new DynamoDbContextMetadata(Array.Empty <DdbConverter>()); _properties = new DdbClassInfo(typeof(MediumStringFieldsEntity), metadata, new ObjectDdbConverter <MediumStringFieldsEntity>(metadata)).Properties.OfType <DdbPropertyInfo <string> >().ToArray(); _entity = new MediumStringFieldsEntity(); }
public static Document ToDocument(this MediumStringFieldsEntity entity) { return(new Document { { "pk", entity.Pk }, { "sk", entity.Sk }, { "f1", entity.F1 }, { "f2", entity.F2 }, { "f3", entity.F3.ToString("O") }, { "f4", entity.F4.ToString("O") }, { "f5", entity.F5 }, { "f6", entity.F6 }, { "f7", entity.F7.ToString("O") }, { "f8", entity.F8.ToString("O") }, { "f9", entity.F9 }, { "f10", entity.F10 }, { "f11", entity.F11 }, { "f12", entity.F12 } }); }