المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Create the database with LINQ



C# Programming
10-15-2009, 04:51 AM
Hi.
I'm using LINQ to SQL. I wanna create a database with LINQ but the following exception has occurred :
Illegal characters in path.

This is my code :
using (RezaRestaurant.SQL.DataClasses1DataContext dbc = new RezaRestaurant.SQL.DataClasses1DataContext())
if (!dbc.DatabaseExists())
dbc.CreateDatabase();//Exception

BTW : I was using UFT8 characters in database's tables, like this : اقلام_فروخته_شده

Could you please guide me ?
Thanks.