Example #1
0
        //internal Identity(M modl)
        //{
        //    //this.modl = modl;

        //    //var definitions = modl.Modl.Backer.Definitions;
            
        //}

        private Identity(object idValue, Definitions definitions, bool isNewId = false)
        {
            //this.IdValue = idValue;
            this.Definitions = definitions;
            this.IsNewId = isNewId;

            if (Definitions.HasIdProperty && !IsNewId)
                this.IdValue = IdConverter.Convert(idValue, true, Definitions.IdProperty.PropertyType);
            else
                this.IdValue = IdConverter.ConvertToGuid(idValue);
        }