|
Method Attributes to Select, Insert, Delete and Update Posted: 05 Feb 2010 02:49 AM |
I wonder if there is way that I can insert Select, Insert, Delete and Update attribute such as below
[System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Select, true)]
[System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Insert, true)]
[System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Delete, true)]
[System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Update, true)] |
|
|
 |
|
Arinze
|
 |
 |
| Joined: 02 Feb 2008 |
| Total Posts: 105 |
| |
|
Re: Method Attributes to Select, Insert, Delete and Update Posted: 08 Feb 2010 11:20 AM |
DataObjectMethodType attributes are automatically inserted into the code if there's an inheritance heirarchy.
During Project configuration, under the "ASP.NET UI" tab, make sure that the "Create data source facade classes" are checked.
The Facade classes disambiguates the methods derived from the inheritance hierarchy. |
OxyGen Code Generator, the Architected RAD Tool for .NET |
|
 |
|