Acme.Northwind.Install.AzureCopy.TargetIsBlank C# (CSharp) Method

TargetIsBlank() private method

private TargetIsBlank ( InstallSettings settings ) : bool
settings InstallSettings
return bool
		private bool TargetIsBlank(InstallSettings settings)
		{
			var connection = new SqlConnection(settings.GetCloudConnectionString());
			var adapter = new SqlDataAdapter("select * from sys.tables", connection);
			var ds = new DataSet();
			adapter.Fill(ds);
			return (ds.Tables[0].Rows.Count == 0);
		}