/// <summary> /// Retrieves a collection of <see cref="!:BranchXrefModel" /> instances. /// </summary> /// <param name="branchId"> /// The value which identifies the <see cref="!:BranchXrefModel" /> instances to be returned. /// </param> /// <returns> /// The <see cref="!:BranchXrefModel" /> instances that match the specified <paramref name="branchId" />. /// </returns> public static IEnumerable <Consensus.Membership.BranchXref> FetchAllByBranchId(System.String branchId) { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(BranchXref.FetchAllByBranchId(site, branchId)); }
public static System.String GetTableName() { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(BranchXref.GetTableName(site)); }
/// <summary> /// Retrieves a specific <see cref="!:BranchXrefModel" /> instance. /// </summary> /// <param name="id"> /// The unique value which distinctly identifies the <see cref="!:BranchXrefModel" /> instance to be returned. /// </param> /// <returns> /// The <see cref="!:BranchXrefModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found. /// </returns> public static Consensus.Membership.BranchXref FetchById(System.String id) { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(BranchXref.FetchById(site, id)); }
/// <summary> /// Retrieves all instances of the <see cref="!:BranchXrefModel" /> class. /// </summary> /// <returns> /// An enumerable collection of <see cref="!:BranchXrefModel" /> instances. /// </returns> public static IEnumerable <Consensus.Membership.BranchXref> FetchAll() { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(BranchXref.FetchAll(site)); }
/// <summary> /// Creates a new <see cref="!:BranchXrefModel" /> instance. /// </summary> /// <returns> /// A newly instantiated <see cref="!:BranchXrefModel" /> instance. /// </returns> public static Consensus.Membership.BranchXref Create() { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(BranchXref.Create(site)); }
/// <summary> /// Checks if district already exist for that branch in database. /// </summary> /// <param name="branchid"> /// BranchId. /// </param> /// <param name="districtid"> /// DistrictId. /// </param> /// <param name="branchxrefid"> /// BranchXrefId. /// </param> /// <returns> /// Whether that district already exist for that branch in database. /// </returns> public static System.Boolean CheckIfDistrictExist(System.String branchid, System.String districtid, System.String branchxrefid) { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(BranchXref.CheckIfDistrictExist(site, branchid, districtid, branchxrefid)); }