public void SetRelatedEntities(int EntityCode, int HCEntityTypeCode, int HCRelatedEntityTypeCode, int MinMatualCount) { EntityRelationsDataContext datacontext; EntityRelationsDataContext datacontextInner; datacontext = new EntityRelationsDataContext(); var ResultList = datacontext.spSetRelatedEntities(EntityCode, HCEntityTypeCode, HCRelatedEntityTypeCode, MinMatualCount); }
public void DeleteReleatedEntity(int code, int relatedCode, string entityName) { var datacontext = new EntityRelationsDataContext(); EntityRelations relation = null; switch (entityName) { default: throw new Exception("No related entity found."); } if (relation != null) { datacontext.EntityRelations.DeleteOnSubmit(relation); datacontext.SubmitChanges(); } }
public BaseBOLEntityRelations() { dataContext = new EntityRelationsDataContext(); }