[ 
https://issues.apache.org/jira/browse/IBATISNET-194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12515130
 ] 

Miika Mäkinen commented on IBATISNET-194:
-----------------------------------------

I don't see use for *private* but I see very good use for *internal* 
constructors. In fact, I was trying to do my DTOs so that I'd have:

internal .ctor(int primaryKeyId){
    _id = primaryKeyId;
   _isNew = false;
}

public .ctor(){
   _isNew = true;
}

and give iBatis access to internals of my DTO dll... now this is not possible.

> Support for non-public constructors
> -----------------------------------
>
>                 Key: IBATISNET-194
>                 URL: https://issues.apache.org/jira/browse/IBATISNET-194
>             Project: iBatis for .NET
>          Issue Type: Improvement
>          Components: DataMapper
>    Affects Versions: DataMapper 1.6
>         Environment: .NET
>            Reporter: Craig Wilson
>            Priority: Minor
>
> It would be nice to support non-public constructors natively rather than 
> creating a custom IObjectFactory for "read-only" entities.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to