C1 Community
ComponentOne Community is a free source for developers and help authors to collaborate and communicate.
Sign in
|
Join
|
Help
Home
Blogs
Forums
Wikis
Forums
»
WinForms
»
DataObjects for WinForms
»
DataSetLogic AfterGenerateSql event is not firing when used on a SchemaRef
DataSetLogic AfterGenerateSql event is not firing when used on a SchemaRef
rated by 0 users
This post has 1 Reply | 0 Followers
Posts
53
Reply
Elmar
Posted: Wed, Apr 22 2009 12:20 PM
rated by 0 users
hello!
i have a datalibrary class and a winform project.
on the form i place a c1schemaref and a c1datasetlogic (referencing
schemaref).
now the problem:
aftergeneratesql is not firing.
it's not a big thing, since i can work around...
am i missing somehing or is it planned behaviour?
kind regards
elmar
Posts
1,645
Reply
C1_AndreyD
replied on
Wed, Apr 22 2009 2:28 PM
rated by 0 users
Test.zip
Hi Elmar,
I see no problem with a C1SchemaRef. You may take a look at
the attached application. I have added the following handler
to the C1DataSetLogic.AfterGenerateSql event in DataClass1:
private void c1DataSetLogic1_AfterGenerateSql(object sender, GenerateSqlEventArgs e)
{
Debug.WriteLine("AfterGenerateSql");
}
And I can see this message when running the program in debug mode.
> on the form i place a c1schemaref and a c1datasetlogic (referencing
> schemaref).
"on the form"? And how many forms are in your datalibrary? :)
If you placed a C1SchemaRef in the winform project it won't work.
The C1SchemaRef must be in the same project as C1SchemaDef.
They will not find each other otherwise.
Regards,
-Andrey
Previous
|
Next
Page 1 of 1 (2 items) |
RSS
Contact ComponentOne: 1.800.858.2739 ©1987-2010 ComponentOne LLC All Rights Reserved.