You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
527 B

2 years ago
  1. using System.Collections.Generic;
  2. using System.Linq;
  3. namespace SqlSugar
  4. {
  5. public class OracleUpdateable<T> : UpdateableProvider<T> where T : class, new()
  6. {
  7. protected override List<string> GetIdentityKeys()
  8. {
  9. return this.EntityInfo.Columns.Where(it => it.OracleSequenceName.HasValue()).Select(it => it.DbColumnName).ToList();
  10. }
  11. public override int ExecuteCommand()
  12. {
  13. base.ExecuteCommand();
  14. return base.UpdateObjs.Count();
  15. }
  16. }
  17. }