public ImportObjectCommandService(SchemaData schemaData , String connectionString , IEnumerable<String> tableNames , IEnumerable<String> storedProcedureNames , IEnumerable<String> userDefinedTableTypeNames) { this._SchemaData = schemaData; this.ConnectionString = connectionString; this._TableNames.AddRange(tableNames); this._StoredProcedureNames.AddRange(storedProcedureNames); this._UserDefinedTableTypeNames.AddRange(userDefinedTableTypeNames); this.InitializeProperty(); }
public DeleteObjectCommandService(String outputDirectoryPath , SchemaData schemaData , String connectionString , IEnumerable<String> tableNames , IEnumerable<String> storedProcedureNames , IEnumerable<String> userDefinedTableTypeNames) { this._SchemaData = schemaData; var sc = this._SchemaData; var cm = new DeleteObjectCommand(outputDirectoryPath, sc, connectionString); cm.TableNames.AddRange(tableNames); cm.StoredProcedures.AddRange(storedProcedureNames); cm.UserDefinedTableTypes.AddRange(userDefinedTableTypeNames); this.Commands.Add(cm); }
public ImportStoredProcedureCommand(SchemaData schemaData, String connectionString) : base(schemaData, connectionString) { this.Names = new List<string>(); }
public ImportUserDefinedTableTypeCommand(SchemaData schemaData, String connectionString) : base(schemaData, connectionString) { this.Names = new List<string>(); }
public ImportObjectGenerateFileCommandService(SchemaData schemaData) { _SchemaData = schemaData; this.ImportAllObject = false; this.DeleteExistedFiles = false; }
public static void LoadSchemaData(String xmlText) { if (String.IsNullOrWhiteSpace(xmlText) == true) { AValue.SchemaData = new SchemaData(); return; } AValue.SchemaData = AppEnvironment.Settings.XmlSerializer.Deserialize<SchemaData>(xmlText); }
public static void Initialize() { WindowStateInfo.DefaultIcon = new BitmapImage(new Uri(Environment.CurrentDirectory + "\\Icon\\DbSharp.ico")); AValue.ConfigData = ConfigData.LoadConfigData(); var l = AValue.ConfigData.RecentSchemaFiles.Where(el => String.IsNullOrEmpty(el.FilePath)).ToList(); foreach (var item in l) { AValue.ConfigData.RecentSchemaFiles.Remove(item); } AValue.ConfigData.ChangeCultureInfo(); if (String.IsNullOrEmpty(AValue.ConfigData.SchemaFilePath) == false) { try { String xml = File.ReadAllText(AValue.ConfigData.SchemaFilePath); AValue.LoadSchemaData(xml); } catch (FileNotFoundException) { AValue.ConfigData.SchemaFilePath = ""; } } if (AValue.SchemaData == null) { AValue.SchemaData = new SchemaData(); } AValue.CreateErrorLogFolder(); Application.Current.DispatcherUnhandledException += DispatcherUnhandledException; }
public GenerateSourceCodeCommand(String outputDirectoryPath, SchemaData schemaData) : this(outputDirectoryPath, schemaData.DatabaseKey, schemaData.NamespaceName) { }