示例#1
0
    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);
    }
示例#2
0
    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();
        }
    }
示例#3
0
 public BaseBOLEntityRelations()
 {
     dataContext = new EntityRelationsDataContext();
 }