Before Zhenguan, he helped Li Shimin to govern all directions and win the throne. Li Shimin praised him for "contributing to the success of the country". In Zhenguan, he assisted Emperor Taizong, and served as a secretary in the middle of the book, a minister in the book, and a assistant in the book. He always leads 100 departments and has been in charge of government affairs for 20 years. He participated in the formulation of laws and regulations, presided over the revision of laws and regulations, and participated in the formulation of Zhenguan Law, which laid the foundation for the later Yonghui Law and the oldest and most complete feudal criminal code in China. He and Wei Zhi are also companions of the Tang Dynasty; Adjust * * * institutions, preserve and merge central officials as the first of good governance; Good at employing people, Dont Ask For Help, not seeking dignity, appointing people on their merits; Abide by your duties and take no credit. Later generations regard him and Du Ruhui as models of good looks. For example, "Old Tang Book" praised: "The text contains longitude and latitude, which is a deep supplement. The sound is homophonic, only the room and Du. " Because Ling Xuan is good at planning, such as making decisions, he is called "the accumulation of houses" in history.
When Fang was a teenager, he went to Beijing with his father. At that time, Emperor Wendi was in power and the world was at peace. However, in his later years, Fang carefully analyzed the world and told his father privately: "Emperor Wendi of Sui Dynasty has no merit, but only knows to confuse the people. Moreover, he is not a long-term solution for the country. All the scholars are indifferent to each other, but they are extravagant and will eventually destroy each other. Now this country is peaceful, but the day of its demise is waiting. " Ling Xuan is proficient in classical literature. /kloc-at the age of 0/8, he was promoted to Jinshi in Honshu and was named Feather Rider. Because his father is seriously ill all the year round, Fang has been waiting for him and is famous for his filial piety. Only when the soldiers crossed the Weibei River can they avoid the military gate. As soon as they hit it off, like old friends in life, they were immediately asked to join the army as clerks. In order to repay the kindness, Fang made every effort to plan the military and political affairs. Every time the separatist forces were defeated, everyone in the army tried their best to find treasures and foreign objects, but Fang visited Yingjie people everywhere and recommended them to the king of Qin. Therefore, the adviser was very grateful for Fang's recommendation and served with all his heart in the general's mansion. Fang has been in charge of military affairs in Qin Gong for more than ten years. Besides, he has been stationed in Ma Licheng, and the text is reasonable, and there is no draft. Emperor gaozu Li Yuan also appreciated Fang Lingxuan very much and said to his courtiers, "This man is proficient in tactics and is worthy of appointment. Every time I do something for my son (Shimin), I will be touched by my heart. Thousands of miles away, I still have face to see. " Later, Prince Li was demoted to Qin, and Fang and Du Ruhui were also demoted. On the eve of the "Xuanwumen Change", Li Shimin secretly summoned two people to enter the cabinet disguised as Taoist priests, and finally praised the plan.
In the ninth year of Tang Wude (626), he participated in the planning of the change of Xuanwu Gate, and helped Li Shimin win the position of emperor. Emperor Taizong rewarded him with meritorious deeds, and Israel, Sun Chang Wuji, Du Ruhui, Hou were promoted to Xingguo Gong. Li Shimin's cousin Li Shentong refused, saying, "When the volunteers set out, I will lead the soldiers to arrive first. Now Fang Lingxuan, Du Ruhui and other knife and pencil collectors (this uncle dare not mention Sun Chang Wuji because he is the brother-in-law of Taizong; Dare not mention and Hou, both of them are military commanders, and the face of your old boxing brother is not immune. On the contrary, he ranked first and the minister was dissatisfied. " Li Shimin was also impolite, and retorted in court: "Everyone has his own interests. Uncle, although you came with troops, you were afraid of being killed by collective punishment and never fought in person. Against Dou Jiande, you completely lost (and captured, Jiande Rende didn't kill him. Li Shimin didn't find his face); Then Liu Heita got up and you ran away. Nowadays, people like Ling Xuan are paid to work, and they are more successful than Xiao He in stabilizing the country. Although there is no sweat, they can take the lead in making great plans. Uncle, your country's closest relatives, I don't hesitate to raise them, but I can't insult the hero because of my affair.
Be rewarded! "Words, said the imperial uncle who often lost and often fought was ashamed to step down, and he had no face.
In the second year of Zhenguan, Fang changed the country name to Wei Guogong, served as the official of Shangshu, and supervised the revision of national history. Fang devoted herself to sleep at night. In addition, he is a well-informed official, with lenient laws, meritocracy and no care about meanness. Critics call him a good man. In February of the third year of Zhenguan (629), he was the left servant of Shangshu and supervised the revision of national history. In the ninth year of Zhenguan (AD 635), Fang protected the system of Gaozu Mountain Mausoleum and contributed to the opening of the Third Division. In the eleventh year, Liang Guogong was sealed. On an equal footing with Du Ruhui and Wei Zhi, he was an important assistant of Emperor Taizong. In the 13th year of Zhenguan (AD 639), Prince Shao Shi was added. He stayed in the capital. He has been a prime minister for fifteen years. His daughter is Princess Han, and his son's last love will be Princess Gaoyang. He is extremely noble, but he often feels inferior and dare not show off his pride. In the eighteenth year of Zhenguan, he personally expedition to Korea in Liaodong and ordered Fang to stay in Beijing.
In the twenty-second year of Zhenguan (648), Fang was seriously ill, and the famous doctor Taizong took a daily meal and made house calls in person. In July, he died at the age of seventy. On his deathbed, Fang said to the philosophers, "Now the world is at peace, but the emperor's insistence on pursuing North Korea is a national disaster. I am not ashamed of my Lord's anger. If I don't say anything, I will die with hatred. " So he protested in the above table, demanding that Emperor Taizong put the world first and stop cutting Korea. Emperor Taizong looked at his watch. Princess Gaoyang, the other daughter-in-law, said, "This man is dying, and it is really rare to worry about our country." On his deathbed, Li Shimin shook hands with his deathbed and made his son Fang Yi the right-back corps commander and Fang Yi the third doctor, so that he could see his two sons' dignitaries when he was alive. Fang Lingxuan will laugh when he dies. When he died at the age of 70, it was a year of joy and loss. Taizong abandoned the court for three days and gave it to Qiu, saying that he was buried with Zhaoling. Chu Suiliang, a famous calligrapher and minister of the Tang Dynasty, carved a "square tablet" for the cemetery in the third year of Tang Yonghui. There are more than 2,000 words in the inscription, the most famous of which is: "Those who keep the light play the piano, and only then can they think and play the wind."
Fang has always warned his sons not to bully others with a superior eye and not to be arrogant and extravagant, and collected the commandments of ancient and modern sages, wrote them on the screen and distributed them to all heirs, saying, "If you can pay attention to the above, it will be enough to protect yourself and become famous." However, after Xuan's death, the "rebellion of sexual love" destroyed Fang Yi's loyalty, and the family was finally dragged down by a rebellious woman. The princess gave up on herself and sex overthrew her. All scholars were sent to Lingnan as criminals. Thanks to his father's efforts, Fang Yi was finally saved from death and Shu Ren's name was cancelled.