정보 보관 ver1.0
제너릭 형식 타입 형 변환
James Wetzel
2021. 3. 7. 17:59
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
반응형