Back to list
Views:   18.1K
Replies:  5
Archived
PIA: Error in Data Access Layer when using SQLServer.ADONET
Hi all,

The Version property (string) comes from a TimeStamp in the SQL Database.  The Take() and Make() methods on the CustomerDao class use the extension methods AsByteArray() and AsBase64String() respectively to convert from and to strings.

The default Version value "NotSet" doesn't convert in AsByteArray() correctly as an Exception is thrown ("Invalid length for a Base-64 char array or string.").

I think I've also found that existing Customers are passed back incorrect TimeStamps into SQL anyway so suspect the conversions are incorrect.


Any ideas?
Martyn Reid, Jul 17, 2012
Reply 1
Hi Mike,

Just wondered if this had been reviewed - especially with a new release due some time over the next few months?
Martyn Reid, Aug 16, 2012
Reply 2
Hi Mike,
Thanks for getting back to me - apologies, it was a typo - I've corrected the question...
Martyn Reid, Aug 08, 2012
Hi Thanks for this link, but using this link I have had Go to Home link for all the pages using partialrender Menu.cshtml still I had issue with my master layout is not calling Area view . If you have any sample code for using both Area and Initial login. Initial login is coming correctly when I will click area view link clik that time master layout disapprearing. Thanks.
Jul 25, 2011
Reply 3
Hi, Martyn.

I'd like to help, and my apologies for being ignorant, but what is SqlServerCustomerDao?

Mike
Michael Lopez, Aug 04, 2012
Reply 4
No one?
Martyn Reid, Jul 31, 2012
Reply 5
Can anyone confirm whether they get the same problems or not?

I just wrote a simple console app to execute CRUD operations against Customers...
Martyn Reid, Jul 19, 2012
Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Licensing       EULA       Sitemap      
© Data & Object Factory, LLC.
Made with    in Austin, Texas