Tuesday, April 8, 2014

Insert Using Entity Framework

  1. Use the following method as a reference to insert a new record in Table.

    public long InsertEventLog(tbl_M_EventLog objEventLog)
    {
        long EventId=0;
        try
        {
        DBConnection.Entities.AddTotbl_M_EventLog(objEventLog);
        DBConnection.SaveChanges();
        EventId = objEventLog.EventId;
        }
        catch (Exception ex)
        {
       
        }
        return EventId;
    }

     

1 comment:

  1. Casino - Dr.MCD
    Casino.com | Hotel Directory, Address, Phone number, 하남 출장샵 Reviews, Games, Slots, Betting, Speciality 충청남도 출장안마 Casino - Drive 춘천 출장안마 up to 당진 출장샵 200 태백 출장마사지 slots machines. Rating: 3 · ‎9 reviews

    ReplyDelete