Sunday, May 20, 2012 Register    Login
Instructions

In order to add new threads or reply to existing posts, you have to be logged-in. If you are not registered yet, you need to register first, and then login with your personal credentials.

   

CslaFactory Forums
HomeHomeSupportSupportCslaFactory CTPCslaFactory CTPSaving ImagesSaving Images
Previous
 
Next
New Post
6/3/2008 4:42 PM
 

Hi Everybody.

I am try save a image into SQL Server 2005 and in my model i have a  field called Image, into Product object. Your data type is of System.Byte.

When I generate the classes, the scripts to create the tables and stored procedures, both have a field and parameter, respectively, with a system.byte data type.

This data type is not in SQL Server data types. I have to change to varbinary(max) data type manually?

 
New Post
6/3/2008 4:44 PM
 

 

 

Rogerio wrote

Hi Everybody.

I am try save a image into SQL Server 2005 and in my model i have a  field called Image, into Product object. Your data type is of System.Byte.

When I generate the classes, the scripts to create the tables and stored procedures, both have a field and parameter, respectively, with a system.byte data type.

This data type is not in SQL Server data types. I have to change to varbinary(max) data type manually?

Hi Marcel,

 i have the same error, but now, the  data type is byte.

Message: Csla.Data.SafeDataReader' does not contain a definition for 'GetSystem'

line in coude with error:       _image = dr.GetSystem.Byte("Image") , but when changed to _image = dr.GetByte("Image")  compile with success.

Best Regards

Rogerio

 
New Post
6/4/2008 9:37 AM
 

Rogerio,

this is again a mapping issue. The CTP version of CslaFactory only supports a fistful of standard types. We have moved forward and  provide an extensible provider system to do the mapping, now. This enables you to use even  custom types. (I already commented on this in a prior post.) Unfortunately, you can not use System.Byte in the CTP version.

Marcel

 
Previous
 
Next
HomeHomeSupportSupportCslaFactory CTPCslaFactory CTPSaving ImagesSaving Images


   

UsersOnline
Membership Membership:
Latest New User Latest: nesopo
Past 24 Hours Past 24 Hours: 0
Prev. 24 Hours Prev. 24 Hours: 0
User Count Overall: 1605

People Online People Online:
Visitors Visitors: 4
Members Members: 0
Total Total: 4

Online Now Online Now: