시퀸스 생성하는 프로시저 만들기
엔티티 모델에서 프로시저 등록하기
가져오기
public int GetProgramSeq()
{
int i = 0;
using (PbotEntities ctx = new PbotEntities())
{
var results = ctx.SP_GET_SEQ_PROGRAM();
long? nextSequenceValue = results.SingleOrDefault();
if( int.TryParse( nextSequenceValue.Value.ToString() , out i ))
{
i = int.Parse(nextSequenceValue.Value.ToString());
}
return i;
}
}
'LINQ & Entity' 카테고리의 다른 글
Linq Distinct & Group by (0) | 2014.11.27 |
---|---|
[ Linq ]Delegate Where 조건검색 (0) | 2012.11.21 |
[ OracleParameter / ExecuteStoreCommand ] 엔티티 직접쿼리하기 (0) | 2012.06.19 |
[CollectionViewSource Filter] 컬렉션뷰소스를 이용한 초간단 검색 (0) | 2011.05.09 |
[WCF Data Service OnStartProcessingRequest] 데이터 서비스 보안 (0) | 2011.05.02 |
[MySql] Entity Framework Entity 사용하기 (0) | 2011.04.26 |
[ Oracle Support for Entity Framework 4 ]오라클 엔티티 만들기 (0) | 2011.03.09 |
[Linq Null Value] 빈값 셀렉트 (2) | 2011.03.03 |
DataSet 을 Linq로 쿼리하기 (0) | 2010.10.06 |
[URL]101 LINQ Samples (0) | 2010.04.26 |