Posts by Severo • 299 points
11 posts
-
12
votes1
answer6870
viewsQ: Date problem with globalize.js and jquery.validation.globalize.js. How to resolve?
I’m having problems with the date fields of my application. Follow this answer that seemed more appropriate, Datetime field error message, I configured my ASP.NET MVC application as follows: I…
-
3
votes1
answer226
viewsQ: How to force an Exception when trying to delete a Master record that already contains relationship in a Child Record?
I created the following structure in SQL Server: Using Entityframework with Code-First the classes stayed that way: [Table("Master")] public class Master { [Key]…
-
1
votes1
answer659
viewsA: How to control the transaction between two different databases in Delphi?
All that was left was to open the databaseDois for my example to work. ... transaction := database.DefaultTransaction; transaction.StartTransaction; databaseDois.DefaultTransaction := transaction;…
-
1
votes1
answer659
viewsQ: How to control the transaction between two different databases in Delphi?
I have two databases and need to ensure the persistence of the data in both in a given process. Connection components are those of the Interbase Express package. I did so: database :=…
-
1
votes1
answer1124
viewsQ: How to obtain the value of a property and how to obtain the property in which the attribute is declared?
Let’s say I’m creating an attribute like this: TCompareAttribute = class(TCustomAttribute) private FPropertyToCompare: string; public constructor Create(APropertyToCompare: string); function…
-
1
votes2
answers964
viewsA: How to register Datasnap service classes in Runtime on Delphi XE7?
I solved my problem momentarily by making my class TCustomService heiress of TDSServerModule and then make use of the events OnCreate and OnDestroy. It is not a solution to the problem presented but…
-
3
votes2
answers964
viewsQ: How to register Datasnap service classes in Runtime on Delphi XE7?
In the Delphi XE3 I was able to register my service classes by doing the following: type TRegisterServices = class class procedure RegisterServices(AOwner: TComponent; DSServer: TDSServer); private…
-
4
votes1
answer1776
viewsQ: Vector images, Font Awesome, Bootstrap Glyphicons. How do they work, what are the advantages and disadvantages?
I was just taking a peek at Font Awesome and in the Bootstrap. They use a font scheme for icons: On Font Awesome I saw the following files: Fontawesome.otf fontawesome-Webfont.eot…
-
1
votes1
answer248
viewsQ: Design standard or best practices for handling virtual disk files
There are standard or best practices for dealing with upload, storage, file publishing, and access control? Environmental example: I have a system that will need to register Calls and News and in…
-
2
votes1
answer92
viewsA: How to exchange terms in an Expression?
The process becomes much simpler if the SQL command builder is based on ExpressionVisitor, as in Defaultsqlquerygenerator of EPH 7, and which follows the one presented by Jon Skeet in his reply in…
-
0
votes2
answers98
viewsA: How to avoid code redundancy in these two methods, one having a Ienumerable<> parameter and the other not?
public GenericDAO<TModel> LeftJoin<TProperty>(Expression<Func<TModel, TProperty>> joinMember, Expression<Func<TProperty, TModel, bool>> filter) where TProperty :…