Okay...I'm sorry... I did provide limited (no) information...
The platform is .net.
What I would like to do is to parse a file that contains multiple lines formatted in a specific way.
Basically it's a column mapping between 2 databases.
The file contains the following data. (these are just a couple of lines, the file is over 300 lines long)
[DB:Master_DB Table:Customer Column:FirstName]=[DB:crm_db Table:_Customers Column:CustFirstName]
[DB:Master_DB Table:Customer Column:LastName]=[DB:crm_db Table:_Customers Column:CustLastName]
[DB:Master_DB Table:Customer Column:Address1]=[DB:crm_db Table:_Customers Column:AddressLine1]
So the first line means that the column Master_DB.Customer.FirstName is linked to crm_db._Customers.CustFirstName.
I need to create an application in C# to visualise and edit these links... a grid containing the Source Tables and Columns (the Left side of the '='). Whenever the user selects a row(a column), I want to show the Column mapped to the selected column (the Right side of the '=').
I need to be able to delete a mapping or change a mapping.
So basically I would need to do the following things:
- Read all mappings: If possible broken out by DB,Table or Column.
for example: DB:Master_DB
Table:Customer
Column:FirstName
DB:crm_db
Table:_Customers
Column:CustFirstName
- Replace an existing mapping:
for example [DB:Master_DB Table:Customer Column:FirstName]=[DB:crm_db Table:_Customers Column:CustFirstName] has to be replaced by [DB:Master_DB Table:Customer Column:FirstName]=[DB:crm_db2 Table:_Customers Column:CustFirstName]
- Delete an existing mapping
Did I provid information? Can I do this with the help of regular expressions?
Any help is greatly appreciated!!