-
Thanks...that did it...for posterity...here is the change I made (it is a different xyz method from what I have in the question...) [Transactional] protected override void DataPortal_DeleteSelf() { using (var ctx = ConnectionManager<SqlConnection>.GetManager("MyDatabase")) { using (var cmd = new SqlCommand( "DELETE FROM Messages
-
Doing what I just said returns an error about doing a commit transaction without having a corresponding Begin Transaction. How do I do this with the transactional attribute? Seth
-
Jonny This is all experimental...I pieced together a sample from old code and new code using samples. Not sure how it all works. I worked in csla 3.02 several years ago and now I am trying to wrap my brain around the 4+ stuff. I would prefer to use the Transactional attribute. So do I add the transactional attribute and then I remove the cmd.Transaction
-
Hello, I have a ER object called Message.... I am creating and saving the object like this in a unit test... [TestClass] public class MessageUnitTests { [TestMethod] public void NewMessageCreate_succeeds() { var m = ULMOnlineMessageManager.BizObjects.Message.NewMessage(); m.Id = 6; m.AccountNumber = string.Empty; m.Active = true; m.Text = "This
-
Hello, I am curious if there is any documentation on using CSLA with mono-project? I know that 4.2+ officially support mono. Does any documentation exists? I am particularly curious if an assembly running under mono (like on OSX) can use a data-portal running on a windows server? Thanks for your help.
-
Rocky, Can you explain what you mean by "managed backing field"? Seth
-
That was it. Thanks. Seth
-
Thanks Rocky. Seth
-
Rocky, Thanks for your help. I am positive that the issue is with my code...not the framework. That said...I am not sure what the issue is or how to debug it. The direct answer to your question...the code breaks at ... Dim child As T = DataPortal.Create(Of T)() and never hits DataPortal_Create. Seth PS you are a genius. I love CSLA framework.
-
Sorry for the lack of details. In this case the BOs I am working on are a RootList of type GroupMembersList which is populated with GroupMemberInfo objects. Both of these classes are derived from code-genned BASE classes. So GroupMemberList derives from GroupMemberListBase and GroupMemberInfois derived from GroupMemberInfoBase. In this case the error