View Complete Post
So I'm using Entity data model to reflect my database and I generate Domain service from my Entity data model.
I understand that if I have changes in my database, I can just choose "Update Model from Database", but there is no "Update Domain service from Model" option available.
How should maintain my domain service? I'm not going to delete away it and regenerate it whenever there are some changes, right?
I need to know what if
- I add in new table in my database, how should I update from database-->model-->domain service?
- I add in new fields in my table, how should I update from database-->model-->domain service?
Crosspost from RIA Services forum: http://forums.silverlight.net/forums/t/196466.aspx
I'm creating a Dynamic Data application in VS2010 and have recently
switched to using a Domain Service to give greater control over the
data presented to the client. I've noticed that the
AutoGenerate<Action>Button attributes on my GridView are being
ignored. The presence of the Edit and Delete buttons appear to be
contingent on the existence of Update and Delete methods on the partial
classes autogenerated in the Domain Service, but i'm not seeing how to
control the generation of the Select button. Is there a way to control this from
within the Domain Service class?
I have a recursive sub that finds a dropdown list and sets up an AsyncPostbackTrigger for an update panel. I have tried calling this sub both from page_init and page_load
If the dropdownlist is within the update panel, eveything works fine. If the dropdown list is not in the updatepanel I get error
A control with ID 'ddlPersonFilter' could not be found for the trigger in UpdatePanel 'up1'. In both cases the sub does find the dropdown list and executes the code to set up the trigger. Thanks for your help.
Private Sub SetUpdatePanelTrigger(ByVal oControl As Control)
For Each ctrl As Control In oControl.Controls
If TypeOf ctrl Is DropDownList Then
If CType(ctrl, DropDownList).ID = "ddlPersonFilter" Then
Dim thisddl As New DropDownList
Dim thistrigger As New AsyncPostBackTrigger
thisddl = ctrl
thistrigger.EventName = "SelectedIndexChanged"
thistrigger.ControlID = thisddl.ID
If ctrl.HasControls Then
I have several Web Services that I call using jQuery, they are all <WebMethod()> _ Public Function and return either a boolean or string, depending on the function.
I have some Web Service functions, where I would like to call sub routines I have in my base class, they are Public Sub's.
When I add a call of a sub routine in the Web Service function, I get a blue line that says 'Object reference not set to an instance of an object'. If I change the sub routine to Public Shared Sub, then the blue line and error go away, but I get other errors from the calls I was successfully making to the base class routines before.
Is there a way to get these two to work together?