Exemplo n.º 1
0
        partial void OnValidate(ChangeAction action)
        {
            // Validate the URL
            if (Website != null && !Website.ToLower().StartsWith("http://"))
            {
                Website = "http://" + Website;
            }

            CentralLibrary.Post(action, "Fleet", FleetID);
        }
Exemplo n.º 2
0
 partial void OnValidate(ChangeAction action)
 {
     if (action == ChangeAction.Insert && ScorePointsFactor == 0)
     {
         // This is to correct an issue encountered since moving to WinHost with the MSSQL Default Value for the column
         // not being set to the specificed default value.  Initially the thought was that MSSQL default values weren't being
         // honored.  However, it is likely that a newer version of the Entity Framework (EF) is passing default values,
         // which would supercede the MSSQL Default Constraint value.
         ScorePointsFactor = 1;
     }
     if (action == ChangeAction.Insert && !IsScoreExcludable)
     {
         // See above note for ScorePointsFactor :-)
         IsScoreExcludable = true;
     }
     CentralLibrary.Post(action, "RaceSeries", RaceID);
 }
Exemplo n.º 3
0
 partial void OnValidate(ChangeAction action)
 {
     CentralLibrary.Post(action, "Registration", RegistrationID);
 }
Exemplo n.º 4
0
 partial void OnValidate(ChangeAction action)
 {
     CentralLibrary.Post(action, "Boat", BoatID);
 }
Exemplo n.º 5
0
 partial void OnValidate(ChangeAction action)
 {
     CentralLibrary.Post(action, "Race", RaceID);
 }
Exemplo n.º 6
0
 partial void OnValidate(ChangeAction action)
 {
     CentralLibrary.Post(action, "PrizeDetail", PrizeDetailID);
 }
Exemplo n.º 7
0
 partial void OnValidate(ChangeAction action)
 {
     CentralLibrary.Post(action, "Penalty", PenaltyID);
 }
Exemplo n.º 8
0
 partial void OnValidate(ChangeAction action)
 {
     CentralLibrary.Post(action, "FleetSeries", FleetSeriesID);
 }
Exemplo n.º 9
0
 partial void OnValidate(ChangeAction action)
 {
     CentralLibrary.Post(action, "Users", UserId.ToString());
 }
Exemplo n.º 10
0
 partial void OnValidate(ChangeAction action)
 {
     CentralLibrary.Post(action, "ThrowoutDetail", ThrowoutDetailID);
 }
Exemplo n.º 11
0
 partial void OnValidate(ChangeAction action)
 {
     CentralLibrary.Post(action, "Season", SeasonID);
 }
Exemplo n.º 12
0
 partial void OnValidate(ChangeAction action)
 {
     CentralLibrary.Post(action, "ScoreMethodID", ScoreMethodDetailID);
 }
Exemplo n.º 13
0
 partial void OnValidate(ChangeAction action)
 {
     CentralLibrary.Post(action, "Score", ScoreID);
 }