Fluent NHibernate example
http://www.codeproject.com/Articles/26466/Dependency-Injection-using-Spring-NET
http://stackoverflow.com/questions/29767825/spring-netnhibernate-configuration
http://nhbusinessobj.sourceforge.net/index.html
http://code.google.com/p/genericrepository/
sql:
CREATE TABLE [dbo].[Customers](
[customer_id] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
[name] [nvarchar](75) NULL,
[email] [nvarchar](95) NULL,
[contact_person] [nvarchar](75) NULL,
[postal_address] [nvarchar](150) NULL,
[physical_address] [nvarchar](150) NULL,
[contact_number] [nvarchar](50) NULL,
CONSTRAINT [PK_Customers] PRIMARY KEY CLUSTERED
(
[customer_id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] GO INSERT INTO [dbo].[Customers]
([name]
,[email]
,[contact_person]
,[postal_address]
,[physical_address]
,[contact_number])
VALUES
('Kode Blog'
,'a-team@kode-blog.com'
,'Rodrick Kazembe'
,'Private Bag WWW'
,'Tanzania'
,'911')
INSERT INTO [dbo].[Customers]
([name]
,[email]
,[contact_person]
,[postal_address]
,[physical_address]
,[contact_number])
VALUES
('Google Inc'
,'info@google.com'
,''
,''
,'USA'
,'')
GO
----
CREATE TABLE reader
(
ReaderID varchar(20) NULL,
ReaderName varchar(50) NULL,
ReaderMaxCount INT NULL,
Sex varchar(12) NULL,
ReaderCode varchar(20) NULL,
[Password] varchar(20) NULL
)
GO INSERT INTO reader(ReaderID,ReaderName,ReaderMaxCount,Sex,ReaderCode,[Password]) VALUES('001','geovindu',1,'man','001','001') CREATE TABLE User1
(
[UId] UNIQUEIDENTIFIER DEFAULT(NEWID()) PRIMARY KEY,
UName VARCHAR(50) NULL,
UPwd VARCHAR(50) NULL,
UAddress VARCHAR(50) NULL,
)
GO INSERT INTO User1(UName,UPwd,UAddress) VALUES('001','001','sz')
GO SELECT * FROM user1 CREATE TABLE [User]
(
Id INT IDENTITY(1,1) PRIMARY KEY,
[Name] VARCHAR(50) NULL
)
GO
INSERT INTO [User]([Name]) VALUES('geovindu')
INSERT INTO [User]([Name]) VALUES('sibodu') ---
CREATE TABLE Users
(
UserID INT IDENTITY(1,1) PRIMARY KEY,
[Name] VARCHAR(50) NULL,
[No] VARCHAR(50) NULL
)
GO INSERT INTO Users([Name],[NO]) VALUES('geovindu','001')
INSERT INTO Users([Name],[NO]) VALUES('sibodu','002') CREATE TABLE Projects
(
ProjectID INT IDENTITY(1,1) PRIMARY KEY,
[Name] VARCHAR(50) NULL,
UserID INT
FOREIGN KEY REFERENCES Users(UserID)
)
GO INSERT INTO Projects([Name],UserID) VALUES('中考',1)
INSERT INTO Projects([Name],UserID) VALUES('高考',1)
INSERT INTO Projects([Name],UserID) VALUES('小考',2) CREATE TABLE UserDetails
(
UserID INT
FOREIGN KEY REFERENCES Users(UserID),
Sex INT NULL,
Age INT NULL,
BirthDate DATETIME DEFAULT(GETDATE()),
Height DECIMAL(6,2) DEFAULT(0)
)
GO INSERT INTO UserDetails(UserID,Sex,Age,BirthDate,Height) VALUES(1,1,40,'1977-02-14',172.01)
INSERT INTO UserDetails(UserID,Sex,Age,BirthDate,Height) VALUES(2,1,10,'2007-12-07',122.01) CREATE TABLE Product
(
ProductID INT IDENTITY(1,1) PRIMARY KEY,
[Name] VARCHAR(50) NULL,
Color VARCHAR(50) NULL
)
GO INSERT INTO Product([Name],Color) VALUES('电视机','黑色')
INSERT INTO Product([Name],Color) VALUES('洗碗机','白色')
INSERT INTO Product([Name],Color) VALUES('微波炉','白色')
INSERT INTO Product([Name],Color) VALUES('笔记本','红色') INSERT INTO Product([Name],Color) VALUES('电脑','红色')
INSERT INTO Product([Name],Color) VALUES('办公桌','红色')
INSERT INTO Product([Name],Color) VALUES('轿车','红色')
INSERT INTO Product([Name],Color) VALUES('笔','红色')
INSERT INTO Product([Name],Color) VALUES('纸张','红色') CREATE TABLE ProjectProduct
(
ProjectID INT
FOREIGN KEY REFERENCES Projects(ProjectID),
ProductID INT
FOREIGN KEY REFERENCES Product(ProductID)
)
GO INSERT INTO ProjectProduct(ProjectID,ProductID) VALUES(1,2)
INSERT INTO ProjectProduct(ProjectID,ProductID) VALUES(1,3)
INSERT INTO ProjectProduct(ProjectID,ProductID) VALUES(1,4)
INSERT INTO ProjectProduct(ProjectID,ProductID) VALUES(1,6)
INSERT INTO ProjectProduct(ProjectID,ProductID) VALUES(2,1)
INSERT INTO ProjectProduct(ProjectID,ProductID) VALUES(2,2)
INSERT INTO ProjectProduct(ProjectID,ProductID) VALUES(2,3)
INSERT INTO ProjectProduct(ProjectID,ProductID) VALUES(2,4)
INSERT INTO ProjectProduct(ProjectID,ProductID) VALUES(2,7)
INSERT INTO ProjectProduct(ProjectID,ProductID) VALUES(2,8) CREATE TABLE Tasks
(
TaskID INT IDENTITY(1,1) PRIMARY KEY,
[Name] VARCHAR(50) NULL,
ProjectID INT
FOREIGN KEY REFERENCES Projects(ProjectID) )
GO INSERT INTO Tasks([Name],ProjectID) VALUES('提醒交货',1)
INSERT INTO Tasks([Name],ProjectID) VALUES('提醒验收',2)
/// <summary>
///
/// </summary>
public class Customers
{
public virtual int customer_id { get; protected set; }
public virtual string name { get; set; }
public virtual string email { get; set; }
public virtual string contact_person { get; set; }
public virtual string postal_address { get; set; }
public virtual string physical_address { get; set; }
public virtual string contact_number { get; set; }
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping; namespace CodeBlogdeom
{
/// <summary>
///
/// </summary>
class CustomersMap : ClassMap<Customers>
{
/// <summary>
///
/// </summary>
public CustomersMap()
{
Id(x => x.customer_id);
Map(x => x.name);
Map(x => x.email);
Map(x => x.contact_person);
Map(x => x.postal_address);
Map(x => x.physical_address);
Map(x => x.contact_number);
}
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Globalization;
using NHibernate.Persister;
using FluentNHibernate.Cfg;
using FluentNHibernate.Cfg.Db;
using NHibernate;
using NHibernate.Cfg;
//http://www.kode-blog.com/2014/04/fluent-nhibernate-tutorial-c-windows-crud-example/ namespace CodeBlogdeom
{ /// <summary>
///
/// </summary>
public partial class frmCustomers : Form
{ #region declarations
ISessionFactory sessionFactory;
#endregion #region methods
private void load_records(string sFilter = "")
{
try
{
sessionFactory = CreateSessionFactory(); using (var session = sessionFactory.OpenSession())
{
string h_stmt = "FROM Customers"; if (sFilter != "")
{
h_stmt += " WHERE " + sFilter;
}
IQuery query = session.CreateQuery(h_stmt); IList<Customers> customersList = query.List<Customers>(); dgvListCustomers.DataSource = customersList; lblStatistics.Text = "Total records returned: " + customersList.Count; }
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
} private static ISessionFactory CreateSessionFactory()
{
ISessionFactory isessionFactory = Fluently.Configure()
.Database(MsSqlConfiguration.MsSql2005
.ConnectionString(@"Server=GEOVINDU-PC\GEOVIN; Database=NHibernateSimpleDemo; Integrated Security=SSPI;"))
.Mappings(m => m
.FluentMappings.AddFromAssemblyOf<frmCustomers>())
.BuildSessionFactory(); return isessionFactory;
}
/// <summary>
///
/// </summary>
/// <param name="customer_id"></param>
private void load_customer_details(int customer_id)
{
sessionFactory = CreateSessionFactory();
using (ISession session = sessionFactory.OpenSession())
{
using (ITransaction transaction = session.BeginTransaction())
{
try
{
IQuery query = session.CreateQuery("FROM Customers WHERE customer_id = " + customer_id); Customers customer = query.List<Customers>()[0]; txtCustomerId.Text = customer.customer_id.ToString();
txtName.Text = customer.name;
txtEmail.Text = customer.email;
txtContactPerson.Text = customer.contact_person;
txtContactNumber.Text = customer.contact_number;
txtPostalAddress.Text = customer.postal_address;
txtPhysicalAddress.Text = customer.physical_address;
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Exception Msg");
}
}
}
} #endregion
/// <summary>
///
/// </summary>
public frmCustomers()
{
InitializeComponent();
}
/// <summary>
///
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void Form1_Load(object sender, EventArgs e)
{
load_records();
}
/// <summary>
///
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnClose_Click(object sender, EventArgs e)
{
Close();
}
/// <summary>
///
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnFilter_Click(object sender, EventArgs e)
{
string sFilterValue = string.Empty;
string sField = cboFilter.Text;
string sCriteria = cboCriteria.Text;
string sValue = txtValue.Text; switch (sCriteria)
{
case "Equals":
sFilterValue = sField + " = '" + sValue + "'";
break; case "Begins with":
sFilterValue = sField + " LIKE '" + sValue + "%'";
break; case "Contains":
sFilterValue = sField + " LIKE '%" + sValue + "%'";
break; case "Ends with":
sFilterValue = sField + " LIKE '%" + sValue + "'";
break;
} //data.Add(sFilterValue, sValue); load_records(sFilterValue);
}
/// <summary>
///
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void dgvListCustomers_Click(object sender, EventArgs e)
{
int customer_id = 0; customer_id = int.Parse(dgvListCustomers.CurrentRow.Cells[0].Value.ToString()); load_customer_details(customer_id);
}
/// <summary>
///
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnAddNew_Click(object sender, EventArgs e)
{
//data validation
if (txtName.Text == "")
{
MessageBox.Show("The name field is required", "Null name", MessageBoxButtons.OK, MessageBoxIcon.Warning); return;
} if (txtEmail.Text == "")
{
MessageBox.Show("The email field is required", "Null email", MessageBoxButtons.OK, MessageBoxIcon.Warning); return;
} if (txtPhysicalAddress.Text == "")
{
MessageBox.Show("The physical address field is required", "Null physical address", MessageBoxButtons.OK, MessageBoxIcon.Warning); return;
} Customers customer = new Customers(); customer.name = txtName.Text;
customer.email = txtEmail.Text;
customer.contact_person = txtContactPerson.Text;
customer.contact_number = txtContactNumber.Text;
customer.physical_address = txtPhysicalAddress.Text;
customer.postal_address = txtPostalAddress.Text;
sessionFactory = CreateSessionFactory();
using (var session = sessionFactory.OpenSession())
{
using (ITransaction transaction = session.BeginTransaction())
{
try
{
session.Save(customer); transaction.Commit(); load_records();
} catch (Exception ex)
{
transaction.Rollback(); MessageBox.Show(ex.Message, "Exception Msg");
}
}
}
}
/// <summary>
///
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnRefresh_Click(object sender, EventArgs e)
{
load_records();
}
/// <summary>
///
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnUpdate_Click(object sender, EventArgs e)
{
//data validation
if (txtName.Text == "")
{
MessageBox.Show("The name field is required", "Null name", MessageBoxButtons.OK, MessageBoxIcon.Warning); return;
} if (txtEmail.Text == "")
{
MessageBox.Show("The email field is required", "Null email", MessageBoxButtons.OK, MessageBoxIcon.Warning); return;
} if (txtPhysicalAddress.Text == "")
{
MessageBox.Show("The physical address field is required", "Null physical address", MessageBoxButtons.OK, MessageBoxIcon.Warning); return;
}
sessionFactory = CreateSessionFactory();
using (var session = sessionFactory.OpenSession())
{
using (ITransaction transaction = session.BeginTransaction())
{
try
{
IQuery query = session.CreateQuery("FROM Customers WHERE customer_id = '" + txtCustomerId.Text + "'"); Customers customer = query.List<Customers>()[0]; customer.name = txtName.Text;
customer.email = txtEmail.Text;
customer.contact_person = txtContactPerson.Text;
customer.contact_number = txtContactNumber.Text;
customer.physical_address = txtPhysicalAddress.Text;
customer.postal_address = txtPostalAddress.Text; session.Update(customer); transaction.Commit(); load_records();
} catch (Exception ex)
{
transaction.Rollback(); MessageBox.Show(ex.Message, "Exception Msg");
}
}
}
}
/// <summary>
///
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnDelete_Click(object sender, EventArgs e)
{
sessionFactory = CreateSessionFactory();
using (ISession session = sessionFactory.OpenSession())
{
using (ITransaction transaction = session.BeginTransaction())
{
try
{
IQuery query = session.CreateQuery("FROM Customers WHERE customer_id = '" + txtCustomerId.Text + "'"); Customers customer = query.List<Customers>()[0]; session.Delete(customer); //delete the record transaction.Commit(); //commit it btnRefresh_Click(sender, e); } catch (Exception ex)
{ transaction.Rollback(); MessageBox.Show(ex.Message, "Exception Msg"); } } } }
}
}
using FluentNHibernate.Cfg;
using FluentNHibernate.Cfg.Db;
using NHibernate;
using NHibernate.Tool.hbm2ddl;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web; namespace JaxaraRnD.Helpers.DataAccess
{
public class FluentNHibernateHelper
{
private static ISessionFactory _sessionFactory; private static ISessionFactory SessionFactory
{
get
{
if (_sessionFactory == null) InitializeSessionFactory();
return _sessionFactory;
}
} private static void InitializeSessionFactory()
{
_sessionFactory = Fluently.Configure()
.Database(MsSqlConfiguration.MsSql2008.ConnectionString(JaxaraRnDUtility.Constants.DEFAULT_CONNECTION).ShowSql())
.Mappings(m => m.FluentMappings.AddFromAssemblyOf<FluentNHibernateHelper>())
//.ExposeConfiguration(c => new SchemaExport(c).Create(true, true)) //会清除数据
.BuildSessionFactory();
} public static ISession OpenSession()
{
return SessionFactory.OpenSession();
}
}
}
注意这些连接的区别
/// <summary>
///
/// </summary>
/// <returns></returns>
private static ISessionFactory CreateSessionFactory()
{
ISessionFactory isessionFactory = Fluently.Configure()
.Database(MsSqlConfiguration.MsSql2005
.ConnectionString(@"Server=LF-WEN\GEOVINDU;initial catalog=NHibernateSimpleDemo;User ID=sa;Password=520;"))
.Mappings(m => m
//.FluentMappings.PersistenceModel
//.FluentMappings.AddFromAssembly();
.FluentMappings.AddFromAssemblyOf<Form1>()) .BuildSessionFactory(); return isessionFactory;
} /// <summary>
///
/// </summary>
/// <returns></returns>
private static ISessionFactory CreateSessionFactoryTwo()
{
ISessionFactory isessionFactory = Fluently.Configure()
.Database(MsSqlConfiguration.MsSql2005
.ConnectionString(@"Server=LF-WEN\GEOVINDU;initial catalog=NHibernateSimpleDemo;User ID=sa;Password=520;"))
//.Mappings(m=>m
// .FluentMappings.AddFromAssemblyOf<Form1>()) .Mappings(m =>
{
var persistenceModel = new PersistenceModel() { ValidationEnabled = false };
m.UsePersistenceModel(persistenceModel)
.FluentMappings.AddFromAssemblyOf<Employee>();
})
.BuildSessionFactory(); return isessionFactory; } /// <summary>
///
/// </summary>
/// <returns></returns>
public static ISessionFactory GetCurrentFactory()
{
if (sessionFactoryOne == null)
{
sessionFactoryOne = CreateSessionFactoryOne();
}
return sessionFactoryOne;
}
/// <summary>
/// 映射调用出问题
/// </summary>
/// <returns></returns>
private static ISessionFactory CreateSessionFactoryOne()
{
return FluentNHibernate.Cfg.Fluently.Configure()
.Database(
FluentNHibernate.Cfg.Db.MsSqlConfiguration.MsSql2005
.ConnectionString(s => s.Server(@"LF-WEN\GEOVINDU")
.Database("NHibernateSimpleDemo")
.Username("sa")
.Password("520")
.TrustedConnection())
).BuildSessionFactory();
}
/// <summary>
///
/// </summary>
private static ISessionFactory sessionFactoryOne
{
get;
set;
} /// <summary>
///
/// </summary>
private static void InitializeSessionFactory()
{
try
{
_sessionFactory = Fluently.Configure()
.Database(MsSqlConfiguration.MsSql2005.ConnectionString(JaxaraRnDUtility.Constants.DEFAULT_CONNECTION).ShowSql())
.Mappings(m => m.FluentMappings.AddFromAssemblyOf<FluentNHibernateHelper>())
.ExposeConfiguration(c => new SchemaExport(c).Create(true, true))
.BuildSessionFactory();
}
catch (Exception ex)
{
Console.Write(ex.Message.ToString());
}
}
https://dotblogs.com.tw/hatelove/archive/2009/09/17/10686.aspx
http://www.cnblogs.com/inday/archive/2009/08/04/Study-Fluent-NHibernate-Start.html
http://www.codeproject.com/Articles/19425/NHibernate-Templates-for-Smart-Code-Generator
http://www.codeproject.com/Articles/247196/Components-Mapping-in-Fluent-NHibernate
http://www.codeproject.com/Articles/232034/Inheritance-mapping-strategies-in-Fluent-Nhibernat
http://mvcfhibernate.codeplex.com/ VS2012打开
http://blog.csdn.net/zhang_xinxiu/article/details/42131907
Fluent NHibernate example的更多相关文章
- 全自动迁移数据库的实现 (Fluent NHibernate, Entity Framework Core)
在开发涉及到数据库的程序时,常会遇到一开始设计的结构不能满足需求需要再添加新字段或新表的情况,这时就需要进行数据库迁移. 实现数据库迁移有很多种办法,从手动管理各个版本的ddl脚本,到实现自己的mig ...
- 【翻译】Fluent NHibernate介绍和入门指南
英文原文地址:https://github.com/jagregory/fluent-nhibernate/wiki/Getting-started 翻译原文地址:http://www.cnblogs ...
- Fluent Nhibernate之旅(五)--利用AutoMapping进行简单开发
Fluent Nhibernate(以下简称FN)发展到如今,已经相当成熟了,在Nhibernate的书中也相应的推荐了使用FN来进行映射配置,之前写的FN之旅至今还有很多人会来私信我问题,说来惭愧, ...
- [Fluent NHibernate]第一个程序
目录 写在前面 Fluent Nhibernate简介 基本配置 总结 写在前面 在耗时两月,NHibernate系列出炉这篇文章中,很多园友说了Fluent Nhibernate的东东,也激起我的兴 ...
- [Fluent NHibernate]一对多关系处理
目录 写在前面 系列文章 一对多关系 总结 写在前面 上篇文章简单介绍了,Fluent Nhibernate使用代码的方式生成Nhibernate的配置文件,以及如何生成持久化类的映射文件.通过上篇的 ...
- Fluent NHibernate and Spring.net
http://blog.bennymichielsen.be/2009/01/04/using-fluent-nhibernate-in-spring-net/ http://comments.gma ...
- Fluent NHibernate and Mysql,SQLite,PostgreSQL
http://codeofrob.com/entries/sqlite-csharp-and-nhibernate.html https://code.google.com/archive/p/csh ...
- Fluent NHibernate关系映射
1.好处:Fluent NHibernate让你不再需要去写NHibernate的标准映射文件(.hbm.xml), 方便了我们的代码重构,提供了代码的易读性,并精简了项目代码 实现: (1).首先我 ...
- fluent nhibernate 初体验
离开.net框架两年时间,发展的很快呀.原先自我感觉良好到以为只差一个MVP的考核什么的,现在觉得真的差好远了. 呵呵,废话就不多说了.这次花了两天时间才拿下fluent nhibernate的fir ...
- Fluent NHibernate之旅
Fluent NHibernate 之旅 导航篇: [原创]Fluent NHibernate之旅开篇: [原创]Fluent NHibernate之旅二--Entity Mapping: [原创]F ...
随机推荐
- 移动5年 Android生态系统的演进
由Google.HTC.Qualcomm联手打造的第一部Android手机G1,开启了移动时代的Android纪元(如图1所示),直到现在Android也是唯一能在移动市场上与iOS相抗衡的平台. ...
- TortoiseSVN and TortoiseGit 版本控制图标不见了
突然有一天,代码文件夹上的版本控制图标不见了. 注册表中,将文件夹名重命名,让版本控制的靠前,Computer \ HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft ...
- 《objective-c基础教程》学习笔记(十)—— 内存管理
本篇博文,将给大家介绍下再Objective-C中如何使用内存管理.一个程序运行的时候,如果不及时的释放没有用的空间内存.那么,程序会越来越臃肿,内存占用量会不断升高.我们在使用的时候,就会感觉很卡, ...
- 【Cocos2d-Js基础教学(5)资源打包工具的使用及资源的异步加载处理】
TexturePacker是纹理资源打包工具,支持Cocos2dx的游戏资源打包. 如果用过的同学可以直接看下面的资源的异步加载处理 首先为什么用TexturePacker? 1,节省图片资源实际大小 ...
- Windows Phone 支持中国移动官方支付
今天在这里与大家分享一个好消息,Windows Phone 官方支付支持中国移动(MO Payment),在此之前无论是 Windows Phone 的用户还是开发者,都知道在Windows Phon ...
- 为应用程序池 'DefaultAppPool' 提供服务的进程无法响应Ping
打开Windows 2008 的事件查看器,应用警告提示: 为应用程序池 'DefaultAppPool' 提供服务的进程无法响应 Ping.进程 ID 是 '2144'. 注意: 需要重新注册一vb ...
- Mysql :removeAbandonedTimeout:180
#数据库链接超过3分钟开始关闭空闲连接 秒为单位 removeAbandonedTimeout:180 这个参数会是一个坑吗? http://www.oschina.net/question/1867 ...
- 白话Redis与Memcached区别
如果简单地比较Redis与Memcached的区别,外在的区别是: 1 Redis不仅仅支持简单的k/v类型的数据,同时还提供list,set,zset,hash等数据结构的存储. 2 Redis ...
- Laravel在不同的环境调用不同的配置文件
Laravel在不同的环境调用不同的配置文件 Laravel如何在不同的环境调用不同的配置文件?社区这个问题问的蛮多,如何优雅的方法实现呢,应该有好多方法吧,我一般习惯用两种方法,设置环境变量,或 ...
- [转载]逐步建设企业DevOps能力
当软件行业进入互联网时代,市场对软件产品和服务的交付提出了更高的要求:不仅要快速实现需求,而且要快速发布上线,并且必须保证业务可靠.高效运行.为了满足这些要求,IT组织需要强有力的流程.技术和人员作为 ...