System.Data.Metadata.Edm.ClrEntityType.ClrEntityType C# (CSharp) Method

ClrEntityType() private method

Initializes a new instance of Complex Type with properties from the type.
private ClrEntityType ( Type type, string cspaceNamespaceName, string cspaceTypeName ) : System
type Type The CLR type to construct from
cspaceNamespaceName string
cspaceTypeName string
return System
        internal ClrEntityType(Type type, string cspaceNamespaceName, string cspaceTypeName)
            : base(EntityUtil.GenericCheckArgumentNull(type, "type").Name, type.Namespace ?? string.Empty,
            DataSpace.OSpace)
        {
            System.Diagnostics.Debug.Assert(!String.IsNullOrEmpty(cspaceNamespaceName) &&
                !String.IsNullOrEmpty(cspaceTypeName), "Mapping information must never be null");

            _type = type.TypeHandle;
            _cspaceNamespaceName = cspaceNamespaceName;
            _cspaceTypeName = cspaceNamespaceName + "." + cspaceTypeName;
            this.Abstract = type.IsAbstract;
        }