ADO.net, Check if ObjectContext is writeable

Posted by user287107 on Stack Overflow See other posts from Stack Overflow or by user287107
Published on 2010-03-25T12:00:18Z Indexed on 2010/03/25 12:03 UTC
Read the original article Hit count: 430

I have an embedded database in an asp.net mvc project. If I try to write to the file, I sometimes get a write failed exception because the SQL Server can't write to the file. How can I check an ObjectContext, if its writeable, without actually writing something to the database?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about mvc