partial void DeleteRate(Rate instance);
partial void InsertRate(Rate instance);
partial void UpdateRate(Rate instance);
Rate CreateNewRate(string userName, KEYID keyId, int score) { var rate = new Rate() { RateID = IDProvider.GetNewId("Rate"), CrUserName = userName, CreatedTime = TimeProvider.Now, KID = keyId, Score = score }; return rate; }