protected override void OnModelCreating(DbModelBuilder modelBuilder)?{? modelBuilder.Entity<Student>()? .MapToStoredProcedures(p => p.Insert(sp => sp.HasName("sp_InsertStudent").Parameter(pm => pm.StudentName, "name").Result(rs => rs.StudentId, "Id"))? .Update(sp => sp.HasName("sp_UpdateStudent").Parameter(pm => pm.StudentName, "name"))? .Delete(sp => sp.HasName("sp_DeleteStudent").Parameter(pm => pm.StudentId, "Id"))? );?}
EF 這個存儲過程是什么意思...求大神講解一下
慕后森
2018-08-20 10:09:13