Created
February 29, 2012 14:06
-
-
Save jfromaniello/1941105 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private string miPropiedad; //aquí guardaremos el valor encriptado | |
public string MiPropiedad | |
{ | |
set { this.miPropiedad= encriptar(value) ; } | |
get { return desencriptar(this.miPropiedad); } | |
} | |
En el mapeo: | |
<property name="MiPropiedad" | |
access="field.camelcase" //< aca le decimos a nhibernate que el valor lo tiene que poner y tomar desde el field, no del proprety. | |
column="FOO_1" | |
type="string" length="50" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment