예제 #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);
        }
예제 #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);
 }
예제 #3
0
 partial void OnValidate(ChangeAction action)
 {
     CentralLibrary.Post(action, "Registration", RegistrationID);
 }
예제 #4
0
 partial void OnValidate(ChangeAction action)
 {
     CentralLibrary.Post(action, "Boat", BoatID);
 }
예제 #5
0
 partial void OnValidate(ChangeAction action)
 {
     CentralLibrary.Post(action, "Race", RaceID);
 }
예제 #6
0
 partial void OnValidate(ChangeAction action)
 {
     CentralLibrary.Post(action, "PrizeDetail", PrizeDetailID);
 }
예제 #7
0
 partial void OnValidate(ChangeAction action)
 {
     CentralLibrary.Post(action, "Penalty", PenaltyID);
 }
예제 #8
0
 partial void OnValidate(ChangeAction action)
 {
     CentralLibrary.Post(action, "FleetSeries", FleetSeriesID);
 }
예제 #9
0
 partial void OnValidate(ChangeAction action)
 {
     CentralLibrary.Post(action, "Users", UserId.ToString());
 }
예제 #10
0
 partial void OnValidate(ChangeAction action)
 {
     CentralLibrary.Post(action, "ThrowoutDetail", ThrowoutDetailID);
 }
예제 #11
0
 partial void OnValidate(ChangeAction action)
 {
     CentralLibrary.Post(action, "Season", SeasonID);
 }
예제 #12
0
 partial void OnValidate(ChangeAction action)
 {
     CentralLibrary.Post(action, "ScoreMethodID", ScoreMethodDetailID);
 }
예제 #13
0
 partial void OnValidate(ChangeAction action)
 {
     CentralLibrary.Post(action, "Score", ScoreID);
 }