|
|
Hi,
I need to implement an audit trail for Add/Edit/Delete on my objects,I'm using an ORM (XPO) for defining my objects etc.I implemented an audit trail object that is triggered on
1. OnSaving
2. OnDeleting
of the base object,and I store the changes in Audit-AuditTrail (Mast-Det) table,for field changes. etc....using some method services called.
How do you implement audit trail in you OOP code? Please share your insights? Any patterns etc? Best practices etc? Another thing is that how to disable audit when running unit test,since I don't need to audit them but since base object has the code.
Changes to object (edit/add/del) and what field changes need to be audited
Thanks in advance for you replies.
ubik
|
|
|
|
|
We audit using triggers, i.e. when items are changed in the database. Doing it at your application code level introduces a level of coupling, and a performance hit, that you don't need.
We don't disable auditing during unit testing. That's a bad idea - because you're not testing the behaviour of your system, you're testing the behaviour of an artificially crippled version of your system. If part of your application updates two tables, you need to be able to verify that the correct audits have taken place.
|
|
|
|
|
Hi all,I am new to Dot Net applications.
In my application i want to read the .Lis file,
can anyone suggest me the right approach for doing this?
Thanks in advance...
|
|
|
|
|
You need to either find a library that does it and use it in your application or read specification for .lis file format and write your own parser.
|
|
|
|
|
Hi,
I am currently using SCSF/CAB in my GUI plug-in-able application and I want to add it a sandbox feature. I have found that CLR-Addin framework gives me a perfect solution for isolation, but I didn't find any documentation on how to declare a type/service dynamically ( like in CAB )
This is from Glen Block Blog:
"One challenge around using MAF is in regards to how contracts are declared. MAF requires you to specifically expose everything you want to pass across the wire via a set of contracts (http://msdn.microsoft.com/en-us/library/bb384205.aspx). This is different than the way we customarily access services in a non-MAF world, which is by simply injecting them in the constructor. There are other ways with MAF to expose types (services) without being as explicit, though there is not alot out there documenting this approach.
Glenn"
So my question is what are the ways with MAF to expose services without being explicit ?
Is there any adapter/contract which can pass object by reference?
Is there any documentation/example I can look into it ?
Thanks,
Dmitriy
|
|
|
|
|
i need to make application about stock exchange program
|
|
|
|
|
So - you know your highest level requirement. Now, you need to break this down into more detailed user requirements. May I recommend talking to users, and drawing up a set of use cases to cover the requirements, possibly moving on to some storyboards and detailed activity and sequence diagrams.
Or are you expecting us to give you the code.
|
|
|
|
|
Or if what Pete suggested isn't what you were looking for, I'll just say "Permission granted! Please proceed."
|
|
|
|
|
Classic!
Kevin
|
|
|
|
|
Don't you think that the permission was given too easily without any real justification to proceed
The need to optimize rises from a bad design
|
|
|
|
|
Nah. I like to have my people do their own thing every once in a while. Keeps creativity high.
|
|
|
|
|
faridehkalantary wrote: i need to make application about stock exchange program
Good luck.
If you are looking for someone to do it for you, I'd hate to break it, no one will. Also, if you are looking for someone to share the code of a stock exchange program they wrote, again, I'd hate to break it to you, no one will.
Best thing to do is to get your program requirements, start coding, then ask questions when you run into problems with your code. Pick a better subject line, too.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
You're going to be using System.Net a lot. Browse the MSDN docs and you should find your way easily enough. Come back if you have more specific questions.
|
|
|
|
|
And I need a million dollars. Do your own work.
Blog link to be reinstated at a later date.
|
|
|
|
|
That was harsh. Who voted you a 1 for that? Come on you cretinous coward, stand up and face us. +5 to compensate for the weaselly moron factor.
|
|
|
|
|
Pete O'Hanlon wrote: +5 to compensate for the weaselly moron factor
Same here. Now the post is in red
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Currently I have a ToolStrip with a bunch of ToolStripButtons on it with AutoSize set to false and a fixed width. When the Text fills up that width, the icon is hidden in favor of showing more text.
Example: http://x.mzzt.net/2008.09.26.19.43.58.png
I want the buttons to look more like taskbar buttons, the icon should never be hidden.
I can't find a simple option to do that, am I missing something?
If not, I checked into what I would have to subclass to fix it, but it looks like it's more of toolstrip layout stuff rather than ToolStripRenderer. I suppose I could subclass ToolStripButton and hardcode the layout into OnPaint.
Recommendations?
|
|
|
|
|
Bump. Still haven't figured it out.
|
|
|
|
|
Hi, My name is Saravanan Rao from Chennai, Tamil Nadu,India.I have an assignment through which I need to develop a project in .NET(VB or C# or VC++) involving serial port.The concept of the project is to measure the different voltage levels passed through serial port from an external device that changes voltage levels periodically or manually. Generally speaking, Is it possible to measure voltage levels passed at serial port using .NET or any other s/w components? I am waiting for your response.Thanks in advance
|
|
|
|
|
Saravanan Rao wrote: Generally speaking, Is it possible to measure voltage levels passed at serial port using .NET or any other s/w components?
No, it's not. You'd have to have some piece of external hardware the does the measurement and transfers the values to the computer through one of the ports or, if the measurement hardware is on a board, one fo the expension slots. You'll, of course, also need a driver for this card.
For a cheaper solution, you may want to look here[^] for stuff that works with USB.
|
|
|
|
|
No, the serial port is for binary serial comunication, not measuring analogue voltages. Like Dave says, you'll need some hardware.
We've recently used a Labjack U3[^] device to monitor voltages. You might find it useful.
Simon
|
|
|
|
|
Hi,
Thanks in advance.
I don't know about BizTalk server, please somebody help me to findout the process and archietecture on this.
I need to make a application on BizTalk server using .NET
Thanks,
Arun
Arun Kr
|
|
|
|
|
Kumar Arun wrote: I need to make a application on BizTalk server using .NET
Good luck.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
BizTalk is a complex product. Use Google and read... and read...
Kevin
|
|
|
|