[ http://issues.apache.org/jira/browse/IBATISNET-83?page=all ]
     
Gilles Bayon closed IBATISNET-83:
---------------------------------

    Resolution: Won't Fix

+1 with ron

> Add ConfigureWithEmbeddedResource methods to DomSqlMapBuilder and 
> DomDaoManagerBuilder classes
> ----------------------------------------------------------------------------------------------
>
>          Key: IBATISNET-83
>          URL: http://issues.apache.org/jira/browse/IBATISNET-83
>      Project: iBatis for .NET
>         Type: New Feature
>  Environment: IBatisNet source revision 190788
>     Reporter: Chris Weisel
>     Assignee: Gilles Bayon
>     Priority: Trivial

>
> For simple convenience, it would be nice to have the ability to configure 
> SqlMaps and DaoManagers directly from embedded config files.  Currently, a 
> call must be made to 
> IBatisNet.Common.Utilities.Resources.GetEmbeddedResourceAsXmlDocument() or 
> something equivalent and then then the resulting XmlDocument passed into the 
> Configure(XmlDocument document) method of the respective builder class.  
> The following method is for DomSqlMapBuilder:
> /// <summary>
> ///  Configure a SqlMapper from an embedded resource
> /// </summary>
> /// <param name="resource">Location of the embedded resource</param>
> /// <returns>An SqlMap</returns>
> public SqlMapper ConfigureWithEmbeddedResource(string resource)
> {
>  XmlDocument document = Resources.GetEmbeddedResourceAsXmlDocument( resource 
> );
>  return Build( document, false);
> }
> The following method is for DomDaoManagerBuilder: 
> /// <summary>
> ///  Configure DaoManagers from an embedded xml document.
> /// </summary>
> /// <param name="resource">An embedded resource</param>
> public void ConfigureWithEmbeddedResource(string resource)
> {
>  XmlDocument document = Resources.GetEmbeddedResourceAsXmlDocument(resource);
>  BuildDaoManagers( document, false );
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to