Click here to Skip to main content
15,888,984 members
Home / Discussions / C#
   

C#

 
AnswerRe: Multithreading with task in .net 4. Strange things. Pin
Mark Salsbery10-May-11 10:23
Mark Salsbery10-May-11 10:23 
GeneralRe: Multithreading with task in .net 4. Strange things. Pin
BobJanova12-May-11 2:00
BobJanova12-May-11 2:00 
AnswerRe: Multithreading with task in .net 4. Strange things. Pin
darkelv11-May-11 14:55
darkelv11-May-11 14:55 
AnswerRe: Multithreading with task in .net 4. Strange things. Pin
wanghao297912-May-11 23:11
wanghao297912-May-11 23:11 
QuestionNotification App Architecture [modified] Pin
programmervb.netc++10-May-11 7:42
programmervb.netc++10-May-11 7:42 
AnswerRe: Notification App Architecture Pin
Mark Salsbery10-May-11 10:12
Mark Salsbery10-May-11 10:12 
GeneralRe: Notification App Architecture Pin
Joshi, Rushikesh11-May-11 3:22
professionalJoshi, Rushikesh11-May-11 3:22 
QuestionGenerate DataSet Table Code Pin
Member 342693610-May-11 5:45
Member 342693610-May-11 5:45 
All,

I have a rather unusual situation, Tried to look for a solution online, but not able to, so I am posting it here.

I have a dataset the loads and fills all the tables during app startup.

When I copy a table and paste it in a notepad I get the following

<?xml version="1.0" encoding="utf-8"?><xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop"> <xs:annotation> <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource"> <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource"> <ConnectionRefs /> <Connections /> <TableRefs> <DesignTableRef Name="IntersectionPedSignalNotes"> <ColumnRefs /> <SourceRefs /> </DesignTableRef> </TableRefs> <Tables /> <RelationRefs /> <SourceRefs /> <Sources /> </DataSource> </xs:appinfo> </xs:annotation> <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="NewDataSet" msprop:Generator_DataSetName="NewDataSet"> <xs:complexType> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element name="IntersectionPedSignalNotes" msprop:Generator_TableClassName="IntersectionPedSignalNotesDataTable" msprop:Generator_TableVarName="tableIntersectionPedSignalNotes" msprop:Generator_TablePropName="IntersectionPedSignalNotes" msprop:Generator_RowDeletingName="IntersectionPedSignalNotesRowDeleting" msprop:Generator_UserTableName="IntersectionPedSignalNotes" msprop:Generator_RowChangingName="IntersectionPedSignalNotesRowChanging" msprop:Generator_RowEvHandlerName="IntersectionPedSignalNotesRowChangeEventHandler" msprop:Generator_RowDeletedName="IntersectionPedSignalNotesRowDeleted" msprop:Generator_RowEvArgName="IntersectionPedSignalNotesRowChangeEvent" msprop:Generator_RowChangedName="IntersectionPedSignalNotesRowChanged" msprop:Generator_RowClassName="IntersectionPedSignalNotesRow"> <xs:complexType> <xs:sequence> <xs:element name="NoteId" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-100" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnNoteId" msprop:Generator_ColumnPropNameInRow="NoteId" msprop:Generator_ColumnPropNameInTable="NoteIdColumn" msprop:Generator_UserColumnName="NoteId" type="xs:int" /> <xs:element name="IntersectionPedSignalId" msprop:Generator_ColumnVarNameInTable="columnIntersectionPedSignalId" msprop:Generator_ColumnPropNameInRow="IntersectionPedSignalId" msprop:Generator_ColumnPropNameInTable="IntersectionPedSignalIdColumn" msprop:Generator_UserColumnName="IntersectionPedSignalId" type="xs:int" /> <xs:element name="Note" msprop:Generator_ColumnVarNameInTable="columnNote" msprop:Generator_ColumnPropNameInRow="Note" msprop:Generator_ColumnPropNameInTable="NoteColumn" msprop:Generator_UserColumnName="Note" type="xs:string" default="" /> <xs:element name="LastUpdated" msprop:Generator_ColumnVarNameInTable="columnLastUpdated" msprop:Generator_ColumnPropNameInRow="LastUpdated" msprop:Generator_ColumnPropNameInTable="LastUpdatedColumn" msprop:Generator_UserColumnName="LastUpdated" type="xs:dateTime" /> <xs:element name="LastUpdatedBy" msprop:Generator_ColumnVarNameInTable="columnLastUpdatedBy" msprop:Generator_ColumnPropNameInRow="LastUpdatedBy" msprop:Generator_ColumnPropNameInTable="LastUpdatedByColumn" msprop:Generator_UserColumnName="LastUpdatedBy" type="xs:string" default="" /> </xs:sequence> </xs:complexType> </xs:element> </xs:choice> </xs:complexType> <xs:unique name="Constraint11111111"> <xs:selector xpath=".//IntersectionPedSignalNotes" /> <xs:field xpath="NoteId" /> </xs:unique> </xs:element></xs:schema>



I have a code generator that generates code, and if I use that to generate a different table with the different columns and replace the table name IntersectionPedSignalNotes with IntersectionSignageNotes.

I get the exact same xml code as above, the only difference is the table name. I am hoping to copy this code and paste it in the DataSet so that the new table IntersectionSignageNotes can be created, without me having to add table and columns manually.
Let me know if there are any ideas.

Thanks in advance

Sri
AnswerRe: Generate DataSet Table Code Pin
Luc Pattyn10-May-11 6:07
sitebuilderLuc Pattyn10-May-11 6:07 
GeneralRe: Generate DataSet Table Code Pin
Member 342693610-May-11 7:11
Member 342693610-May-11 7:11 
AnswerRe: Generate DataSet Table Code Pin
Luc Pattyn10-May-11 7:17
sitebuilderLuc Pattyn10-May-11 7:17 
AnswerRe: Generate DataSet Table Code Pin
PIEBALDconsult10-May-11 14:57
mvePIEBALDconsult10-May-11 14:57 
QuestionSet cursor position without firing MouseMove event [modified] Pin
BHillam10-May-11 2:34
BHillam10-May-11 2:34 
AnswerRe: Set cursor position without firing MouseMove event Pin
Shameel10-May-11 3:00
professionalShameel10-May-11 3:00 
GeneralRe: Set cursor position without firing MouseMove event Pin
BHillam10-May-11 3:06
BHillam10-May-11 3:06 
AnswerRe: Set cursor position without firing MouseMove event Pin
Luc Pattyn10-May-11 3:29
sitebuilderLuc Pattyn10-May-11 3:29 
GeneralRe: Set cursor position without firing MouseMove event Pin
BHillam10-May-11 3:58
BHillam10-May-11 3:58 
AnswerRe: Set cursor position without firing MouseMove event Pin
Luc Pattyn10-May-11 4:37
sitebuilderLuc Pattyn10-May-11 4:37 
AnswerRe: Set cursor position without firing MouseMove event [modified] Pin
BHillam10-May-11 5:30
BHillam10-May-11 5:30 
GeneralRe: Set cursor position without firing MouseMove event Pin
Mark Salsbery10-May-11 9:59
Mark Salsbery10-May-11 9:59 
GeneralRe: Set cursor position without firing MouseMove event [modified] Pin
BHillam10-May-11 15:06
BHillam10-May-11 15:06 
GeneralRe: Set cursor position without firing MouseMove event Pin
Mark Salsbery10-May-11 16:39
Mark Salsbery10-May-11 16:39 
QuestionWhat is the best way(s) to send strings from java app to .net app? Pin
CodeGust10-May-11 2:21
CodeGust10-May-11 2:21 
AnswerRe: What is the best way(s) to send strings from java app to .net app? Pin
Groulien10-May-11 2:35
Groulien10-May-11 2:35 
GeneralRe: What is the best way(s) to send strings from java app to .net app? Pin
CodeGust10-May-11 3:39
CodeGust10-May-11 3:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.