Click here to Skip to main content
15,886,518 members

Comments by Per Söderlund (Top 147 by date)

Per Söderlund 16-Feb-17 4:29am View    
Glad to hear, hope you can get a free trial account for a couple of months and test it out. Good luck.
Per Söderlund 15-Feb-17 6:52am View    
Belittle someones intelligence with sarcasm.
Have you read guidelines for codeproject?
I don´t like this answer.
Per Söderlund 8-Dec-16 16:39pm View    
Yes, get used to it. I had to drop both XNA and Silverlight (didnt get that attached to silverlight, but XNA was sweet). Microsoft is intense in swapping technology.
Per Söderlund 7-Dec-16 1:18am View    
I´m in the middle of redesigning a complete system using winforms.
All database CRUD operations will go through a web api that I´m writing in Asp.Net Core.
In Asp.Net there is modelvalidation that is automatic, you just design your datamodels and add attributes such as [Required] or [StringLength] on the properties and a [ErrorMessage] attribute. Then you just check with Model.IsValid and respond with message of error or success to clients.
So I´m gonna let user type whatever he/she wants and respond with a message from web api in a messagebox.
If you are using entity framework directly in winforms I think there is validation built in there.
In a dreamworld there would only be databinding to models and controls would highlight error and success.
What I´m trying to say is, maybe use EF or a backend Web API for validation?
Per Söderlund 5-Dec-16 2:41am View    
As you say, it´s not consistent between controls.
With some hacking it´s possible to implement the validation asp.net uses.
Datamodels with annotations. Havent tried it but I like the sound of it.
I personally use databindings on textboxes, lists and so on. It is one way so you cannot change underlying datamodel value and show it to user without some kind of refresh or update. I design forms for users to create data, I never allow creating straight into a datagridview.