Autor Beitrag
DMR_tec
Hält's aus hier
Beiträge: 2

MS XP
VS 2008 Prof C#
BeitragVerfasst: Mo 15.12.08 16:46 
Hallo zusammen

Ich sollte ein File ( Typ PDF ) in eine MSSQL Express 2005 Datenbank speichern.

Ich arbeite mit dem Entity Framework und C# im Visual Studio 2008 Pro (SP1) .NET FW 3.5 (SP1)

Hat das schon mal jemand von euch gemacht ?

Besten Dank

Gruss
Kha
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3803
Erhaltene Danke: 176

Arch Linux
Python, C, C++ (vim)
BeitragVerfasst: Mo 15.12.08 17:00 
:welcome:
user profile iconDMR_tec hat folgendes geschrieben Zum zitierten Posting springen:
Hat das schon mal jemand von euch gemacht ?
Ich nicht, aber in welchen CLR-Typ wird denn das BLOB (wenn das Bild als solches in der DB gespeichert wird) vom EF abgebildet? Oder musst du die DB erst entwerfen?

_________________
>λ=
DMR_tec Threadstarter
Hält's aus hier
Beiträge: 2

MS XP
VS 2008 Prof C#
BeitragVerfasst: Mo 15.12.08 17:16 
ich entwerfe die DB noch... ich hab die Felder als varbinary(MAX) definiert

Im .edmx sehe ich diese Felder dann als Binary

Gruss
Kha
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3803
Erhaltene Danke: 176

Arch Linux
Python, C, C++ (vim)
BeitragVerfasst: Mo 15.12.08 18:03 
user profile iconDMR_tec hat folgendes geschrieben Zum zitierten Posting springen:
Im .edmx sehe ich diese Felder dann als Binary
Gut, also kannst du beliebige Byte-Arrays speichern. Da die Binary-Klasse aber immutable ist, musst du auch zum Ändern der Eigenschaft eine neue Instanz zuweisen.

_________________
>λ=