Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

code first approach with images

$
0
0

Hi , I was looking at this and wanted to store images

http://stackoverflow.com/questions/4653095/how-to-store-images-using-entity-framework-code-first-ctp-5

they suggested using this as a code first approach

public class Product
{
    public int Id { get; private set; }

    public string Name { get; set; }

    public byte[] ProductImage { get; set; }
}

Before I do this I wanted to know if I could go down the filestream root instead? If so I recon I would have to do some manual config with the MS SQL instance, which is kinda scary since I'm used to EF configuring the DB foe me.

tips friends??


Viewing all articles
Browse latest Browse all 1698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>