2 writes to dbName
System.Data.Linq (2)
SqlClient\SqlProvider.cs (2)
348
this.
dbName
= this.GetDatabaseName(connectionString);
383
this.
dbName
= this.GetDatabaseName(con.ConnectionString);
13 references to dbName
System.Data.Linq (13)
SqlClient\SqlProvider.cs (13)
349
if (this.
dbName
.EndsWith(".sdf", StringComparison.OrdinalIgnoreCase)) {
355
throw Error.ProviderNotInstalled(this.
dbName
, SqlCeProviderInvariantName);
543
if (!File.Exists(this.
dbName
)) {
560
throw Error.CreateDatabaseFailedBecauseSqlCEDatabaseAlreadyExists(this.
dbName
);
583
if (File.Exists(this.
dbName
)) {
584
throw Error.CreateDatabaseFailedBecauseSqlCEDatabaseAlreadyExists(this.
dbName
);
603
else if (!String.IsNullOrEmpty(this.
dbName
)) {
604
catalog = this.
dbName
;
711
File.Delete(this.
dbName
);
723
this.log.WriteLine(Strings.LogAttemptingToDeleteDatabase(this.
dbName
));
725
this.ExecuteCommand(SqlBuilder.GetDropDatabaseCommand(this.
dbName
));
754
exists = File.Exists(this.
dbName
);
763
this.conManager.Connection.ChangeDatabase(this.
dbName
);