Posts by Flavio • 197 points
5 posts
-
1
votes3
answers292
viewsA: Entity Framework 4 - Migrations error: The ... type is not defined in the <namespace> namespace. Map (Alias=Self)
I found the answer! According to this Thread, it is not possible to have two navigational properties in the same simple property. With this, in the Functionodel class, I changed the code: public…
-
1
votes3
answers292
viewsQ: Entity Framework 4 - Migrations error: The ... type is not defined in the <namespace> namespace. Map (Alias=Self)
I have a problem in mapping my application. [EDITED] Follows the Complete Datacontext Class: using System; using System.Collections.Generic; using System.Linq; using System.Web; using…
-
4
votes1
answer617
viewsQ: Validating start date and end date for the same Model attribute
Description of the problem: I need to create a form with an initial date and end date to list sales of a product per period. Let’s take this model as an example: public class Produto { [Display(Name…
-
5
votes1
answer403
viewsQ: How do I maintain a Viewbag for all Controllers?
I am developing in ASPNET MVC 4 with Razor. I made the login page and everything is ok. After login, the famous phrase "Welcome FLAVIO" is being successfully returned, via Viewbag. As I’m doing a…
asp.net-mvcasked Flavio 197 -
8
votes1
answer13268
viewsQ: How to create a JOB on Oracle?
I have the command below to perform the analysis of Oracle indexes: EXEC DBMS_STATS.GATHER_SCHEMA_STATS('USUARIO', estimate_percent=> 25); I would like to know how to schedule this command so…