티스토리 뷰

 public ObjectResult<ChattingRoom_Select_ChattingRoomInfo_Result> ChattingRoom_Select_ChattingRoomInfo(string chattingRoomId)
 {
   return ((IObjectContextAdapter)this).ObjectContext.ExecuteStoreQuery<ChattingRoom_Select_ChattingRoomInfo_Result>(
   "dbo.[ChattingRoom_Select_ChattingRoomInfo] @ChattingRoomId",
   new object[] {
   new SqlParameter("@ChattingRoomId", chattingRoomId)
   }
   ) ?? (ObjectResult<ChattingRoom_Select_ChattingRoomInfo_Result>)Convert.ChangeType(new ChattingRoom_Select_ChattingRoomInfo_Result(), typeof(ObjectResult<ChattingRoom_Select_ChattingRoomInfo_Result>));
 }

 

728x90
반응형