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

"The column mapping from SourceColumn 'FullName' failed because the DataColumn 'FullName' is a computed column." #11

Closed
rdingwall opened this issue Mar 16, 2012 · 2 comments

Comments

@rdingwall
Copy link
Collaborator

Reported via email from Daniel-Lucian Corsei:

Hello,

I think I found an issue in Protobuf-net-data project.
I tried to signup on GitHub to add this issue, but i receive an error, so I decide to send you a mail.

I have attached a sample project where you can see the error about I am talking.
The problem is that serialization of a dataset does not skip the computed columns, and when I try to load the dataset, it gave me the error "The column mapping from SourceColumn 'FullName' failed because the DataColumn 'FullName' is a computed column."

@rdingwall
Copy link
Collaborator Author

The example (car table) has columns Maker, Model, and computed FullName (expression = Maker+Model). The error message is actually being thrown by a strongly-typed DataSet.Load(), but protobuf-net-data should not have serialized the FullName column.

rdingwall added a commit that referenced this issue Mar 16, 2012
…n to the proto stream (i.e. DataColumns where !(Expression is DbNull)) #11
@rdingwall
Copy link
Collaborator Author

Fixed in bd5ac2b.

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