コード例 #1
0
ファイル: Scripts.cs プロジェクト: windygu/Visual-NHibernate
        public static string GetPropertyName(ArchAngel.Interfaces.Scripting.NHibernate.Model.IColumn column)
        {
            object[] parms = new object[] { column };
            string   body  = (string)PropertyNameMethod.Invoke(null, parms);

            if (body.StartsWith("          "))
            {
                body = body.Substring(10);
            }

            return(body);
        }
コード例 #2
0
 private static ArchAngel.Interfaces.Scripting.NHibernate.Model.IColumn CreateIColumn(ArchAngel.Providers.EntityModel.Model.DatabaseLayer.IColumn column)
 {
     ArchAngel.Interfaces.Scripting.NHibernate.Model.IColumn newColumn = new ArchAngel.Interfaces.Scripting.NHibernate.Model.IColumn();
     newColumn.Name = column.Name;
     newColumn.ScriptObject = column;
     newColumn.IsIdentity = column.IsIdentity;
     newColumn.IsNullable = column.IsNullable;
     newColumn.Length = column.Size;
     newColumn.Type = column.OriginalDataType;
     newColumn.SizeIsMax = column.SizeIsMax;
     return newColumn;
 }