날자별

2021 1월
 123
45678910
11121314151617
18192021222324
25262728293031

Linq 샘플

select case [csharp]static internal ProtoTestRES doHello(ProtoTestASK r_ask) { try { var res = new ProtoTestRES(); var dataContext = new NamuDataClassesDataContext();

var listMember = from itemMember in dataContext.tb_Member where itemMember.fd_Member_nID == 1 select itemMember;

foreach( var itemMember in listMember) { res.m_Member_nID = itemMember.fd_Member_nID; res.m_Member_strEmail = itemMember.fd_Member_strEmail; }

return res; } catch (Exception ex) […]

wcf 작업때 표준 코드

Test [csharp] static private readonly ILog s_thelog = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);

#if DEBUG static public ServiceReference_Solution.ServiceTaxiClient proxy = new ServiceReference_Solution.ServiceTaxiClient(); #else static public ServiceReference_Staging.ServiceTaxiClient proxy = new ServiceReference_Staging.ServiceTaxiClient(); #endif

private ProtoBufRES _function( ProtoBufASK r_ask ) { s_thelog.Info("> " + GetType().FullName + "." + MethodBase.GetCurrentMethod().Name);

var btask = ProtoBuffHelper.Serialize(r_ask); var btres = proxy.function(btask); var res […]