Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array of complex data into FixedLengthRecord - how ? #361

Open
ch0mik opened this issue Oct 4, 2019 · 0 comments
Open

Array of complex data into FixedLengthRecord - how ? #361

ch0mik opened this issue Oct 4, 2019 · 0 comments

Comments

@ch0mik
Copy link

ch0mik commented Oct 4, 2019

`
[FixedLengthRecord(FixedMode.AllowLessChars)]
public class Customer
{
[FieldFixedLength(5)]
public int CustId;

[FieldFixedLength(30)]
[FieldTrim(TrimMode.Both)]
public string Name;

[FieldFixedLength(8)]
[FieldConverter(ConverterKind.DateMultiFormat, "ddMMyyyy", "MMyyyy")]
public DateTime AddedDate;

[???]
public Address[] Adresses

}`

`[FixedLengthRecord(FixedMode.AllowLessChars)]
public class Address
{
[FieldFixedLength(5)]
public int AddId;

[FieldFixedLength(30)]
public string City;


[FieldFixedLength(30)]
public string Street;

[FieldFixedLength(8)]
public string Number;

}`

What I should make into Attributes for this part of class (array of Address[] class)

[???]
public Address[] Adresses

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant